TTGeofencingReportService
@interface TTGeofencingReportService : NSObject
TomTom Geofencing API main object. Contains methods to use Tomtom’s online search engine and provides support for both async and sync calls.
-
Delegate that informs the subscriber when a search result is available. It contains a TTGeofencingReport object.
Declaration
Objective-C
@property (readwrite, nonatomic) 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.
-
Cancels the current geofencing request.
Declaration
Objective-C
- (void)cancel;
Swift
func cancel()