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
Content copied to clipboard
initialize(SygicContextInitRequest(jsonConfig,context,tracking,logConnector),callback)
Content copied to clipboard
Parameters
context
instance of the context
tracking
instance of the tracking
log Connector
instance of the connector
json Config
JSON configuration string (for example configuration, see full JSON configuration example)
callback
listener to be called after engine is initialized