TTPoiDetails
Objective-C
@interface TTPoiDetails
Swift
class TTPoiDetails
Public Preview
This is under Public Preview and subject to change by the end of 2020.12.
More information is available at: https://developer.tomtom.com/public-preview
-
Initializer with a key for the TomTom Search API service.
Declaration
Objective-C
- (instancetype _Nonnull)initWithKey:(NSString *_Nonnull)key;
Swift
init(key: String)
-
Delegate that informs the subscriber when a search result is available. It contains a TTAutocompleteResponse object.
Declaration
Objective-C
@property (nonatomic, weak) id<TTPoiDetailsDelegate> _Nullable delegate;
Swift
weak var delegate: TTPoiDetailsDelegate? { get set }
-
Request with an async callback.
Declaration
Objective-C
- (void)requestWithQuery:(TTPoiDetailsQuery *_Nonnull)query;
Swift
func request(with query: TTPoiDetailsQuery)
Parameters
query
Object containing the data needed to perform a Request.
-
Request with an async block.
Declaration
Objective-C
- (void)requestWithQuery:(TTPoiDetailsQuery *_Nonnull)query completionHandle: (void (^_Nonnull)(TTPoiDetailsResponse *_Nullable, TTResponseError *_Nullable))completionHandler;
Swift
func request(with query: TTPoiDetailsQuery, completionHandle completionHandler: @escaping (TTPoiDetailsResponse?, UnsafeMutablePointer<Int32>?) -> Void)
Parameters
query
Object containing the data needed to perform a Request.
completionHandler
CompletionHandler that informs the subscriber when a Response is available.