initialize

abstract suspend fun initialize(clientId: String, clientSecret: String, mappyUserId: String? = null, license: String? = null): String

Initializes the Mappy SDK with the specified client ID, client secret, Mappy user ID, and license.

Return

A string representing the initialization status or result.

Parameters

clientId

The client ID for Mappy SDK.

clientSecret

The client secret for Mappy SDK.

mappyUserId

The optional Mappy user ID.

license

The optional license for Mappy SDK.


abstract fun initialize(clientId: String, clientSecret: String, mappyUserId: String? = null, completionCallback: CompletionCallback<String>)

Initializes the Mappy SDK with the specified client ID, client secret, Mappy user ID, and a completion callback.

Parameters

clientId

The client ID for Mappy SDK.

clientSecret

The client secret for Mappy SDK.

mappyUserId

The optional Mappy user ID.

completionCallback

The callback function to be invoked when the initialization is complete.