iOSLocation.Enabled
From Xojo Documentation
Property (As Boolean )
aiOSLocation.Enabled = newBooleanValue
or
BooleanValue = aiOSLocation.Enabled
Supported on Mobile (iOS).
or
BooleanValue = aiOSLocation.Enabled
Supported on Mobile (iOS).
Default is False. Set Enabled to True so that the LocationChanged event is called at appropriate times. Set this to False when you do not need locations in order to not waste battery power.
Notes
Do not enable if AuthorizationState is AuthorizationStates.Restricted or AuthorizationStates.Denied.
Sample Code
You will typically use code like this in the Open event handler of your view to initialize iOSLocation: