setBackgroundLocationAllowed abstract method

LocationEngineStatus setBackgroundLocationAllowed(
  1. bool allowed
)

Enables or disables background location updates for an application.

Defaults to false.

  • allowed Set to true to allow background location updates, or false to disable them.

Returns LocationEngineStatus. LocationEngineStatus.ok if call succeeds. LocationEngineStatus.notAllowed if the application does not have background location capabilities enabled. LocationEngineStatus.notSupported on platforms which do not support controlling of background location modes.

Implementation

LocationEngineStatus setBackgroundLocationAllowed(bool allowed);