Use this interface to set mandatory authentication credentials You have to set authentication credentials (Api key and App Secret code) in order to use the APIs contained within this SDK. Some APIs may appear to work without valid credentials but they may stop functioning in the near future when server side configurations change, so please obtain and use valid credentials. More...
#import <SYContext.h>
Class Methods | |
(void) | + registerSharedInstanceClass: |
(dispatch_once_t &) | + mapLoaderSetupOnceToken |
(void) | + initWithConfiguration:withCompletion: |
Initializes Sygic SDK, must be called before any other sdk calls. More... | |
(void) | + terminate |
Terminates Sygic SDK. More... | |
(BOOL) | + isInitialized |
Check if Sygic SDK is initialized. More... | |
(nonnull NSString *) | + sdkVersion |
Use this interface to set mandatory authentication credentials You have to set authentication credentials (Api key and App Secret code) in order to use the APIs contained within this SDK. Some APIs may appear to work without valid credentials but they may stop functioning in the near future when server side configurations change, so please obtain and use valid credentials.
+ (void) initWithConfiguration: | (nonnull NSDictionary *) | configuration | |
withCompletion: | (nullable void(^)(SYContexInitResult result, NSString *_Nonnull description)) | completion | |
Initializes Sygic SDK, must be called before any other sdk calls.
appKey | Application Key |
appSecret | Application Secret code |
completion | Initialization completion block Sets the mandatory Sygic Authentication Credentials and License Key. |
These credentials MUST be set once before attempting to use any other APIs in the Sygic SDK. You may only call this method once. It is recommended to call this method in [UIApplicationDelegate didFinishLaunchingWithOptions].
Initializes Sygic SDK, must be called before any other sdk calls
configuration | Configuration data, you can find complete configuration scheme here .... Simple example: NSDictionary* config ="Authentication": @"app_key" : @"your-app-key", @"app_secret" : @"your-app-secret"} }; |
completion | Initialization completion block |
These credentials MUST be set once before attempting to use any other APIs in the Sygic SDK. You may only call this method once. It is recommended to call this method in [UIApplicationDelegate didFinishLaunchingWithOptions].
+ (BOOL) isInitialized |
Check if Sygic SDK is initialized.
+ (dispatch_once_t&) mapLoaderSetupOnceToken |
Provided by category SYContext(SharedInstances).
+ (void) registerSharedInstanceClass: | (Class) | c |
Provided by category SYContext(SharedInstances).
+ (nonnull NSString*) sdkVersion |
SDK version in format MAJOR.MINOR.PATCH.
+ (void) terminate |
Terminates Sygic SDK.