SYContextInitRequest Class Reference

Use this object to configure SDK initialization. More...

#import <SYContext.h>

Inheritance diagram for SYContextInitRequest:
Collaboration diagram for SYContextInitRequest:
NSDictionary * configuration
 Configuration data, you can find complete configuration scheme here: https://www.sygic.com/developers/sygic-maps-sdk/sdk-configuration/full-json-configuration/full-json-example Simple example: NSDictionary* config ="Authentication": @"app_key" : @"your-app-key"} };. More...
 
BOOL loadMaps
 If true, SDK will automatically load all installed maps. If false, SDK takes less time to initialize, maps can be loaded manually after initialization, see SYMapLoader. Default value: true. More...
 
BOOL clearOnlineCache
 Flag indicating whether cache for online services shall be cleared. Should be set to true if the license could have changed (e.g. user made some purchase, etc.). Should be set to false otherwise. Default value: false. More...
 
id< SYLogConnectorDelegatelogConnectorDelegate
 An object implementing SYLogConnectorDelegate protocol. This property keeps a strong reference, but after initialization the SDK will keep a weak reference to this object. This object will be set to SYLogConnector.shared.delegate as soon as possible to provide logs during SDK initialization. Requires "Logging" key to be set properly in configuration, otherwise it will not receive messages. See SYLogConnectorDelegate for more details. More...
 
id< SYAuthProviderauthProvider
 Provider of authentication headers for Sygic online services network communication. If this property is nil, default implementation will be used, and configuration must contain a value for "Authentication" key. If this property is not nil, "Authentication" value in configuration will be ignored. Default value is nil. See SYAuthProvider for more details. More...
 
(nonnull instancetype) - initWithConfiguration:
 
((unavailable("Use -[SYContextInitRequest initWithConfiguration:] instead.") - __attribute__
 
((unavailable("Use -[SYContextInitRequest initWithConfiguration:] instead.") + __attribute__
 

Detailed Description

Use this object to configure SDK initialization.

Method Documentation

◆ initWithConfiguration:

- (nonnull instancetype) initWithConfiguration: (nonnull NSDictionary *)  configuration

◆ __attribute__ [1/2]

◆ __attribute__ [2/2]

Property Documentation

◆ configuration

- (NSDictionary*) configuration
readwritenonatomicassign

Configuration data, you can find complete configuration scheme here: https://www.sygic.com/developers/sygic-maps-sdk/sdk-configuration/full-json-configuration/full-json-example Simple example: NSDictionary* config ="Authentication": @"app_key" : @"your-app-key"} };.

◆ loadMaps

- (BOOL) loadMaps
readwritenonatomicassign

If true, SDK will automatically load all installed maps. If false, SDK takes less time to initialize, maps can be loaded manually after initialization, see SYMapLoader. Default value: true.

◆ clearOnlineCache

- (BOOL) clearOnlineCache
readwritenonatomicassign

Flag indicating whether cache for online services shall be cleared. Should be set to true if the license could have changed (e.g. user made some purchase, etc.). Should be set to false otherwise. Default value: false.

◆ logConnectorDelegate

- (id<SYLogConnectorDelegate>) logConnectorDelegate
readwritenonatomicstrong

An object implementing SYLogConnectorDelegate protocol. This property keeps a strong reference, but after initialization the SDK will keep a weak reference to this object. This object will be set to SYLogConnector.shared.delegate as soon as possible to provide logs during SDK initialization. Requires "Logging" key to be set properly in configuration, otherwise it will not receive messages. See SYLogConnectorDelegate for more details.

◆ authProvider

- (id<SYAuthProvider>) authProvider
readwritenonatomicstrong

Provider of authentication headers for Sygic online services network communication. If this property is nil, default implementation will be used, and configuration must contain a value for "Authentication" key. If this property is not nil, "Authentication" value in configuration will be ignored. Default value is nil. See SYAuthProvider for more details.


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