GEMSdkDelegate
Objective-C
@protocol GEMSdkDelegate <NSObject>
Swift
protocol GEMSdkDelegate : NSObjectProtocol
A set of delegate methods about GEM Sdk.
-
Notifies the delegate that the authorization key was rejected.
Declaration
Objective-C
- (void)authorizationKeyRejected;
Swift
optional func authorizationKeyRejected()
-
Notifies the delegate that the authorization key was updated. @details This notification will be available only for tokens updated internally via MagicEarth services.
Declaration
Objective-C
- (void)authorizationKeyUpdated;
Swift
optional func authorizationKeyUpdated()
-
Notifies the delegate that there is an update for the world map. Notification is triggered only if there are no local maps.
Declaration
Objective-C
- (BOOL)shouldUpdateWorldwideRoadMapForStatus: (ContentStoreOnlineSupportStatus)status;
Swift
optional func shouldUpdateWorldwideRoadMap(for status: ContentStoreOnlineSupportStatus) -> Bool
Parameters
status
The online support status. Returning true will trigger an automatically update for the world map.
-
Notifies the delegate when the worldwide road map automatically update is finished.
Declaration
Objective-C
- (void)updateWorldwideRoadMapFinished:(BOOL)success;
Swift
optional func updateWorldwideRoadMapFinished(_ success: Bool)
-
Notifies the delegate that there is an update for the current map style.
Declaration
Objective-C
- (BOOL)shouldUpdateMapStyleForStatus:(ContentStoreOnlineSupportStatus)status;
Swift
optional func shouldUpdateMapStyle(for status: ContentStoreOnlineSupportStatus) -> Bool
Parameters
status
The online support status. Returning true will trigger an automatically update for the map style.
-
Notifies the delegate when the map style automatically update is finished.
Declaration
Objective-C
- (void)updateMapStyleFinished:(BOOL)success;
Swift
optional func updateMapStyleFinished(_ success: Bool)
-
Notifies the delegate that the worldwide road map support is enabled.
Declaration
Objective-C
- (void)onWorldwideRoadMapSupportEnabled;
Swift
optional func onWorldwideRoadMapSupportEnabled()
-
Notifies the delegate that the worldwide road map support is disabled.
Declaration
Objective-C
- (void)onWorldwideRoadMapSupportDisabled:(ReasonType)reason;
Swift
optional func onWorldwideRoadMapSupportDisabled(_ reason: ReasonType)
-
Notifies the delegate that the worldwide road map status changed.
Declaration
Objective-C
- (void)onWorldwideRoadMapSupportStatusChanged: (ContentStoreOnlineSupportStatus)status;
Swift
optional func onWorldwideRoadMapSupportStatusChanged(_ status: ContentStoreOnlineSupportStatus)
-
Notifies the delegate that the worldwide road map version was updated.
Declaration
Objective-C
- (void)onWorldwideRoadMapVersionUpdated;
Swift
optional func onWorldwideRoadMapVersionUpdated()
-
Notifies the delegate that the SDK doesn’t support latest worldwide road map capabilities. @details The SDK must be updated to latest version in order to be able tu use the latest online maps.
Declaration
Objective-C
- (void)onWorldwideRoadMapUnsupportedCapabilities;
Swift
optional func onWorldwideRoadMapUnsupportedCapabilities()
-
Notifies the delegate with the online connection status.
Declaration
Objective-C
- (void)onConnectionStatusUpdated:(BOOL)connected;
Swift
optional func onConnectionStatusUpdated(_ connected: Bool)
Parameters
connected
The online connection status.
-
Notifies the delegate that the Sdk resources are ready to be deployed.
Declaration
Objective-C
- (void)onResourcesReadyToDeploy;
Swift
optional func onResourcesReadyToDeploy()
-
Notifies the delegate if Sdk resources update is allowed. @details Returning true will allow the SDK to download and prepare the latest resources.
Declaration
Objective-C
- (BOOL)isResourcesUpdateAllowed;
Swift
optional func isResourcesUpdateAllowed() -> Bool
-
Notifies the delegate that offboard cache changed size. @details Cache size is given in KB.
Declaration
Objective-C
- (void)onOnlineCacheSizeChange:(int)size;
Swift
optional func onOnlineCacheSizeChange(_ size: Int32)