GemSdk

GEM sdk global functions

Types

Link copied to clipboard

Background related events

Link copied to clipboard

Enumerates the possible places where new data can be saved

Link copied to clipboard

Sdk native code configuration

Link copied to clipboard

Memory card related events

Link copied to clipboard

Properties

Link copied to clipboard

SDK log path

Link copied to clipboard

The app variant

Link copied to clipboard

SDK capabilities

Link copied to clipboard

SDK data save policy

Link copied to clipboard

SDK external storage path

Link copied to clipboard

SDK internal storage path

Link copied to clipboard

GEM sdk native code build configuration

Link copied to clipboard

SDK version

Link copied to clipboard

Transfer statistics for Sdk manager

Functions

Link copied to clipboard
external fun generateGPSLog(generate: Boolean)

Generate GPS log

Link copied to clipboard

Get error details as string

Link copied to clipboard
external fun getErrorDetailsInt(error: Int): String?

Get error details as string

Link copied to clipboard

Gets SDK token from manifest. Returns the String found in manifest else null

Link copied to clipboard
fun initialize(context: Context, activity: Activity?, timer: TimerService? = null, internalPath: String? = null, externalPath: String? = null, language: String? = null, languageTts: String? = null, savePolicy: GemSdk.EDataSavePolicy? = null, listener: ProgressListener? = null, appVariant: Int? = null, useApiExceptions: Boolean = false, logger: ApiCallLogger? = ApiCallLogger(), autoInitLiveDataSource: Boolean? = null, breakpadCallback: (Boolean) -> Unit? = null, token: String? = null, generateGPSLog: Boolean = false): Int

Initialize GEM sdk. All GEM sdk objects must be used after a successful call to this function.

Link copied to clipboard
fun initSdkWithDefaults(context: Context, token: String? = null, timer: TimerService? = null, internalPath: String? = null, externalPath: String? = null, language: String? = null, languageTts: String? = null, savePolicy: GemSdk.EDataSavePolicy? = null, listener: ProgressListener? = null, appVariant: Int? = null, useApiExceptions: Boolean = false, logger: ApiCallLogger? = ApiCallLogger(), autoInitLiveDataSource: Boolean? = null, breakpadCallback: (Boolean) -> Unit? = null, allowOnline: Boolean = true, generateGPSLog: Boolean = false): Boolean

Initializes the sdk with DefaultNetworkManager If no token provided then will use GemSdk.getTokenFromManifest instead.

Link copied to clipboard
external fun isInitialized(): Boolean

Checks if SDK is initialized.

Link copied to clipboard

Notifies GEM SDK about the hosting app background / foreground state.

Link copied to clipboard
external fun notifyEngineInit(): Boolean

Call this when the engine is initialized. Needed for Flutter communication.

Link copied to clipboard

Notifies the Magic Earth Engine about SdCard inserted/removed.

Link copied to clipboard
Link copied to clipboard
open override fun onTTSPlayerInitialized()

Notification called when TTS engine is initialized

Link copied to clipboard

Produces a preset live DataSource.

Link copied to clipboard
fun release(): Unit?

Releases the service manager if already created.

Link copied to clipboard
external fun setNativeLibraryDir(nativeLibraryDir: String)

Set native library dir, used by deep learning API Called only once when library loaded MUST BE USED ONLY BY ANDROID IMPLEMENTATIONS OVER THIS API