Skip to content

//MLBluetoothSDK/com.masterlock.mlbluetoothsdk/MLBluetoothSDK/getInstance

getInstance

[androidJvm]\ open fun getInstance(licenseFile: String, context: Context): MLBluetoothSDK

Initialize the Master Lock Bluetooth SDK and returns a singleton instance

Parameters

androidJvm

licenseFile The License File string that has been supplied to you by Master Lock
context The context the SDK will operate in

Throws

MLInvalidLicenseException If license format is invalid
MLLicenceExpiredException If license is expired

[androidJvm]\ open fun getInstance(licenseFile: String, mlLocationProvider: MLLocationProvider, context: Context): MLBluetoothSDK

Initialize the Master Lock Bluetooth SDK and returns a singleton instance with a custom MLLocationProvider

Parameters

androidJvm

licenseFile The License File string that has been supplied to you by Master Lock
context The context the SDK will operate in
mlLocationProvider The MLLocationProvider the SDK should use to request Location for device encounters

Throws

MLInvalidLicenseException If license format is invalid
MLLicenceExpiredException If license is expired