UALocationDelegate
@protocol UALocationDelegate <NSObject>
Location delegate protocol to receive callbacks for location updates.
-
Called when location updates started.
Declaration
Objective-C
- (void)locationUpdatesStarted;
Swift
optional func locationUpdatesStarted()
-
Called when location updates stopped. Location updates will stop if the application background and
isBackgroundLocationUpdatesAllowed
is set to NO, if the user disables location, or if location updates are disabled withlocationUpdatesEnabled
.Declaration
Objective-C
- (void)locationUpdatesStopped;
Swift
optional func locationUpdatesStopped()
-
Called when new location updates are available. The last location will automatically generate a location event.
Declaration
Objective-C
- (void)receivedLocationUpdates:(nonnull NSArray *)locations;
Swift
optional func receivedLocationUpdates(_ locations: [Any])