initialize

Parameters

request

instance of the request

callback

listener to be called after engine is initialized


fun initialize(context: Context, tracking: Tracking?, logConnector: LogConnector?, jsonConfig: String, callback: SygicEngine.OnInitCallback?)

Deprecated

Use initialize() which consumes the SygicContextInitRequest. Hitting Alt+Enter in a kotlin file should suggest a quick replacement, but we recommend creating a SygicContextInitRequest() outside of the function.

Replace with

import com.sygic.sdk.context.SygicContextInitRequest
initialize(SygicContextInitRequest(jsonConfig,context,tracking,logConnector),callback)

Parameters

context

instance of the context

tracking

instance of the tracking

logConnector

instance of the connector

jsonConfig

JSON configuration string (for example configuration, see full JSON configuration example)

callback

listener to be called after engine is initialized