//MLBluetoothSDK/com.masterlock.mlbluetoothsdk.Interfaces/MLLocationProvider/getLocation
getLocation¶
[androidJvm]\ abstract fun getLocation(callback: MLCommandCallback<Location>)
This method should return a Location by calling result on the provided callback
// return a location for the lock interaction
public void getLocation(MLCommandCallback<Location> callback) {
Location location = MyCustomLocationAlgorithm.getLocation();
callback.result(location, null);
}
// or pass null
public void getLocation(MLCommandCallback<Location> callback) {
callback.result(null, null);
}