//MLBluetoothSDK/com.masterlock.mlbluetoothsdk/MLBluetoothSDK
MLBluetoothSDK¶
[androidJvm]\ open class MLBluetoothSDK
Main entry point for the Master Lock Android SDK BLE Scanner Initialize SDK by calling static initializer getInstance Prepare scanner by calling setLockScannerDelegate Observe scanner is ready in bluetoothReady Start Scan by calling startScanning
Properties¶
| Name | Summary |
|---|---|
| instance | [androidJvm] @get:Nullable open val instance: MLBluetoothSDK |
| lockScannerDelegate | [androidJvm] @get:Nullable open var lockScannerDelegate: IMLLockScannerDelegate |
| scanner | [androidJvm] open var scanner: Scanner |
Functions¶
| Name | Summary |
|---|---|
| getInstance | [androidJvm] open fun getInstance(licenseFile: String, context: Context): MLBluetoothSDK Initialize the Master Lock Bluetooth SDK and returns a singleton instance [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 |
| getMLContext | [androidJvm] @Nullable open fun getMLContext(): Context |
| getScannerDelegate | [androidJvm] @Nullable open fun getScannerDelegate(): IMLLockScannerDelegate |
| haveNetworkConnection | [androidJvm] open fun haveNetworkConnection(): Boolean |
| sendCachedAuditEvents | [androidJvm] open fun sendCachedAuditEvents() Attempt to send any audit data saved to SDK’s internal db when SDK was offline If successful, will delete the transmitted items to SDK’s db and call IMLProductDelegate didUploadAuditEntries |
| startScanning | [androidJvm] open fun startScanning() Tells the SDK to start scanning. |
| stopScanning | [androidJvm] open fun stopScanning() Tells the SDK to stop scanning for Master Lock devices |
| stopSDK | [androidJvm] open fun stopSDK() Unbinds the SDK from memory. |
| version | [androidJvm] open fun version(): String Get the version of the MLSDK |