SKSearchResultParent Class Reference

Inherits from NSObject
Declared in SKSearchResultParent.h

Overview

SKSearchResultParent provides additional information about the the ascendants of an SKSearchResult object. Instances of this class are used as objects in the parentList property of the SKSearchResult class.

  parentIndex

The index of the parent. Each SKSearchResultParent object has a unique index.

@property (nonatomic, assign) int parentIndex

Discussion

The index of the parent. Each SKSearchResultParent object has a unique index.

Declared In

SKSearchResultParent.h

  type

The type of the parent (country, state, city, etc.). For further details please check the SKSearchResultType enum.

@property (nonatomic, assign) SKSearchResultType type

Discussion

The type of the parent (country, state, city, etc.). For further details please check the SKSearchResultType enum.

Declared In

SKSearchResultParent.h

  name

The name of the parent. For example: for an SKSearchResultParent object with type country, this property could be Germany.

@property (nonatomic, strong) NSString *name

Discussion

The name of the parent. For example: for an SKSearchResultParent object with type country, this property could be Germany.

Declared In

SKSearchResultParent.h

+ searchResultParentWithIndex:type:name:

Creates a SKSearchResultParent, initialized with the values passed as parameters.

+ (instancetype)searchResultParentWithIndex:(int)index type:(int)type name:(NSString *)name

Parameters

index

The index of the parent.

type

The type of the parent (Country, state, city, etc.).

name

The name of the parent.

Return Value

A newly initialized SKSearchResultParent with the values passed as parameters.

Discussion

Creates a SKSearchResultParent, initialized with the values passed as parameters.

Declared In

SKSearchResultParent.h