TTGeofencingReportService
Objective-C
@interface TTGeofencingReportService
Swift
class TTGeofencingReportService
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
TomTom Geofencing API main object. Contains methods to use Tomtom’s online search engine and provides support for both async and sync calls.
-
Initializer with key for the TomTom 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 TTGeofencingReport object.
Declaration
Objective-C
@property (nonatomic, weak) id<TTGeofencingReportServiceDelegate> _Nullable delegate;
Swift
weak var delegate: TTGeofencingReportServiceDelegate? { get set }
-
Geofencing with async callback
Declaration
Objective-C
- (void)reportWithQuery:(TTGeofencingReportQuery *_Nonnull)query;
Swift
func report(with query: TTGeofencingReportQuery)
Parameters
query
Object containing the data needed to perform a geofencing query.
-
Geofencing with async block
Declaration
Objective-C
- (void)reportWithQuery:(TTGeofencingReportQuery *_Nonnull)query completionHandle:(void (^_Nonnull)(TTGeofencingReport *_Nullable, int *_Nullable))completionHandler;
Swift
func report(with query: TTGeofencingReportQuery, completionHandle completionHandler: @escaping (TTGeofencingReport?, UnsafeMutablePointer<Int32>?) -> Void)
Parameters
query
Object containing the data needed to perform a geofencing.
completionHandler
CompletionHandler that informs the subscriber when a geofencing response is available. It contains a TTGeofencingReport object.