iOSLocation.AuthorizationChanged

From Xojo Documentation

Event


iOSLocation.AuthorizationChanged()

Supported on Mobile (iOS).

Called when the app's authorization to location services has changed. You can check the AuthorizationState property to see the new state.

Sample Code

This code enables the control so it gets events when the location changes:

If Me.AuthorizationState = iOSLocation.AuthorizationStates.AuthorizedWhenInUse Then
// start getting LocationChanged events
Me.Enabled = True
End If