Skip to content

//MLBluetoothSDK/com.masterlock.mlbluetoothsdk.Interfaces/MLLocationProvider

MLLocationProvider

[androidJvm]\ interface MLLocationProvider

Optional Interface to be called by SDK to build device encounter data. To use register your implementation using getInstance

Functions

Name Summary
getLocation [androidJvm]
abstract fun getLocation(callback: MLCommandCallback<Location>)
This method should return a Location by calling result on the provided callback kotlin // return a location for the lock interaction<br>public void getLocation(MLCommandCallback<Location> callback) { Location location = MyCustomLocationAlgorithm.getLocation(); callback.result(location, null); }<br> kotlin // or pass null<br>public void getLocation(MLCommandCallback<Location> callback) { callback.result(null, null); }<br>