SYContext Class Reference

Use this interface to set mandatory authentication crendentials 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>

Inheritance diagram for SYContext:
Collaboration diagram for SYContext:

Class Methods

(void) + initWithAppKey:appSecret:completion:
 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
 

Detailed Description

Use this interface to set mandatory authentication crendentials 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.

Method Documentation

+ (void) initWithAppKey: (nonnull NSString *)  appKey
appSecret: (nonnull NSString *)  appSecret
completion: (nullable void(^)(SYContexInitResult result))  completion 

Initializes Sygic SDK, must be called before any other sdk calls.

Parameters
appKeyApplication Key
appSecretApplication Secret code
completionInitializaiton 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].

+ (BOOL) isInitialized

Check if Sygic SDK is initialized.

Returns
YES if Sygic SDK is initialized, otherwise NO. If NO is returned then the Sygic SDK is not ready to handle any service.
+ (nonnull NSString*) sdkVersion

SDK version in format MAJOR.MINOR.PATCH.

+ (void) terminate

Terminates Sygic SDK.


The documentation for this class was generated from the following file: