setBackgroundLocationIndicatorVisible method
- bool visible
override
On iOS devices this controls visibility of application's background location indicator.
By default background location indicator
is visible, if application has background location capabilities.
Set visible to true to show background location indicator, or false to hide it.
Returns LocationEngineStatus.ok if call succeeds and LocationEngineStatus.notAllowed if the application
does not have background location capabilities enabled.
On Android devices this is not supported and LocationEngineStatus.notSupported is returned.
Implementation
LocationEngineStatus setBackgroundLocationIndicatorVisible(bool visible) {
if (Platform.isIOS) {
return _location.setBackgroundLocationIndicatorVisible(visible);
}
return LocationEngineStatus.notSupported;
}