Skip to content
Select language:English

MDK 3.7.3

object GiPStech

The main entry point for interacting with the GiPStech Mobile Development Kit (MDK).

This class provides methods for initializing and configuring the MDK.

Properties

var defaultScope: CoroutineScope

The default coroutine scope for invoking listener events.

The unique identifier for the device.

Returns true if the library is initialized, false otherwise.

Returns the name of this library.

Returns the version of this library.

Functions

Enables beta content.

Returns a specific resource bundle.

Returns a map of available resource bundles.

Returns a specific resource string.

suspend fun init(devKey: String, tag: String? = null, context: Any? = null): Boolean

Initialize the %GiPStech MDK.

Checks if the internet is available.

Requests a new activation.

Resets the mock location.

Resets the localization profile.

Resets the sensor file reader, clearing any previously set sensor file.

fun resetThrottling(code: String? = null)

Resets the internal timers used for network throttling.

fun resetUser()

Resets username and password.

fun setAppVersion(version: Int)

Sets the app version.

Enables or disables background mode.

fun setConfigParameter(key: Int, value: String?)

Sets a configuration parameter.

Configures which MDK-managed features require deferred activation.

fun setDiagnosticLogger(logger: (String) -> Unit)

Sets a diagnostic logger.

fun setMockLocation(location: Location)

Sets the mock location for testing purpose.

fun setOfflineMode(enabled: Boolean)

Enables or disables offline mode.

fun setProfile(name: String)

Sets the localization profile.

fun setSensorFile(filename: String, mockLocation: Location? = null, fastForward: Boolean = false)

Sets the sensor file to be used for reading sensor data for testing purpose.

fun setUser(username: String, password: String)

Sets the username and password for authentication.

fun shutdown()

Shutdown the GiPStech MDK, releasing any held resources.