Builder

class Builder(mContext: Context)

Builder for initializing SDK. <br></br><br></br> Example:

<pre> `new SygicEngine.Builder(APP_KEY, SECRET, context).setInitListener(this).init(); ` * </pre> *

Constructors

Builder
Link copied to clipboard
fun Builder(mContext: Context)

Functions

init
Link copied to clipboard
fun init()
Initializes the Sygic engine from arguments supplied to builder.
setInitListener
Link copied to clipboard
fun setInitListener(callback: SygicEngine.OnInitCallback): SygicEngine.Builder
Set a listener to be called after engine is initialized.
setKey
Link copied to clipboard
fun setKey(key: String): SygicEngine.Builder
Set key to use with Sygic SDK.
setKeyAndSecret
Link copied to clipboard
fun setKeyAndSecret(key: String, secret: String): SygicEngine.Builder
Set key and secret to use with Sygic SDK.
setLogConnector
Link copied to clipboard
fun setLogConnector(logConnector: LogConnector?): SygicEngine.Builder
Sets the log connector which will get the logs from the Sygic SDK.
setPath
Link copied to clipboard
fun setPath(path: String): SygicEngine.Builder
Set path to directory with maps and resources.
setTracking
Link copied to clipboard
fun setTracking(tracking: Tracking?): SygicEngine.Builder