TTPoiCategories

Objective-C

@interface TTPoiCategories

Swift

class TTPoiCategories

TTPoiCategories

  • DEPRECATED

    • This method is deprecated. Use the ‘initWithKey’ method to init with Key.
    • The planned withdrawal date is 15.06.2021.

    Initializer with info.plist Key.

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;

    Swift

    init()
  • Initializer with key for the TomTom Search API Service.

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithKey:(NSString *_Nonnull)key;

    Swift

    init(key: String)
  • @brief Delegate that informs subscriber when a search result is available.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<TTPoiCategoriesDelegate> _Nullable delegate;

    Swift

    weak var delegate: TTPoiCategoriesDelegate? { get set }
  • @brief Request POI categories. Adequate method from TTPoiCategoriesDelegate will be called when response arrives.

    Declaration

    Objective-C

    - (void)requestCategoriesWithQuery:(TTPoiCategoriesQuery *_Nonnull)query;

    Swift

    func request(with query: TTPoiCategoriesQuery)

    Parameters

    query

    Object containing the data needed to perform a request.

  • @brief Request POI categories with async block.

    Declaration

    Objective-C

    - (void)requestCategoriesWithQuery:(TTPoiCategoriesQuery *_Nonnull)query
                      completionHandle:
                          (void (^_Nonnull)(TTPoiCategoriesResponse *_Nullable,
                                            TTResponseError *_Nullable))
                              completionHandler;

    Swift

    func request(with query: TTPoiCategoriesQuery, completionHandle completionHandler: @escaping (TTPoiCategoriesResponse?, TTResponseError?) -> Void)

    Parameters

    query

    Object containing the data needed to perform a request.

    completionHandler