public interface CLLocationManagerDelegate
Discussion: Delegate for CLLocationManager.
| Modifier and Type | Method and Description |
|---|---|
default void |
locationManagerDidChangeAuthorization(CLLocationManager manager)
locationManagerDidChangeAuthorization:
|
default void |
locationManagerDidChangeAuthorizationStatus(CLLocationManager manager,
int status)
locationManager:didChangeAuthorizationStatus:
|
default void |
locationManagerDidDetermineStateForRegion(CLLocationManager manager,
long state,
CLRegion region)
locationManager:didDetermineState:forRegion:
|
default void |
locationManagerDidEnterRegion(CLLocationManager manager,
CLRegion region)
locationManager:didEnterRegion:
|
default void |
locationManagerDidExitRegion(CLLocationManager manager,
CLRegion region)
locationManager:didExitRegion:
|
default void |
locationManagerDidFailRangingBeaconsForConstraintError(CLLocationManager manager,
CLBeaconIdentityConstraint beaconConstraint,
NSError error) |
default void |
locationManagerDidFailWithError(CLLocationManager manager,
NSError error)
locationManager:didFailWithError:
|
default void |
locationManagerDidFinishDeferredUpdatesWithError(CLLocationManager manager,
NSError error)
locationManager:didFinishDeferredUpdatesWithError:
|
default void |
locationManagerDidPauseLocationUpdates(CLLocationManager manager)
Discussion:
Invoked when location updates are automatically paused.
|
default void |
locationManagerDidRangeBeaconsInRegion(CLLocationManager manager,
NSArray<? extends CLBeacon> beacons,
CLBeaconRegion region)
locationManager:didRangeBeacons:inRegion:
|
default void |
locationManagerDidRangeBeaconsSatisfyingConstraint(CLLocationManager manager,
NSArray<? extends CLBeacon> beacons,
CLBeaconIdentityConstraint beaconConstraint) |
default void |
locationManagerDidResumeLocationUpdates(CLLocationManager manager)
Discussion:
Invoked when location updates are automatically resumed.
|
default void |
locationManagerDidStartMonitoringForRegion(CLLocationManager manager,
CLRegion region)
locationManager:didStartMonitoringForRegion:
|
default void |
locationManagerDidUpdateHeading(CLLocationManager manager,
CLHeading newHeading)
locationManager:didUpdateHeading:
|
default void |
locationManagerDidUpdateLocations(CLLocationManager manager,
NSArray<? extends CLLocation> locations)
locationManager:didUpdateLocations:
|
default void |
locationManagerDidUpdateToLocationFromLocation(CLLocationManager manager,
CLLocation newLocation,
CLLocation oldLocation)
Deprecated.
|
default void |
locationManagerDidVisit(CLLocationManager manager,
CLVisit visit)
locationManager:didVisit:
|
default void |
locationManagerMonitoringDidFailForRegionWithError(CLLocationManager manager,
CLRegion region,
NSError error)
locationManager:monitoringDidFailForRegion:withError:
|
default void |
locationManagerRangingBeaconsDidFailForRegionWithError(CLLocationManager manager,
CLBeaconRegion region,
NSError error)
locationManager:rangingBeaconsDidFailForRegion:withError:
|
default boolean |
locationManagerShouldDisplayHeadingCalibration(CLLocationManager manager)
locationManagerShouldDisplayHeadingCalibration:
|
default void locationManagerDidChangeAuthorizationStatus(CLLocationManager manager, int status)
Discussion: Invoked when the authorization status changes for this application.
default void locationManagerDidDetermineStateForRegion(CLLocationManager manager, long state, CLRegion region)
Discussion: Invoked when there's a state transition for a monitored region or in response to a request for state via a a call to requestStateForRegion:.
default void locationManagerDidEnterRegion(CLLocationManager manager, CLRegion region)
Discussion: Invoked when the user enters a monitored region. This callback will be invoked for every allocated CLLocationManager instance with a non-nil delegate that implements this method.
default void locationManagerDidExitRegion(CLLocationManager manager, CLRegion region)
Discussion: Invoked when the user exits a monitored region. This callback will be invoked for every allocated CLLocationManager instance with a non-nil delegate that implements this method.
default void locationManagerDidFailWithError(CLLocationManager manager, NSError error)
Discussion: Invoked when an error has occurred. Error types are defined in "CLError.h".
default void locationManagerDidFinishDeferredUpdatesWithError(CLLocationManager manager, NSError error)
Discussion: Invoked when deferred updates will no longer be delivered. Stopping location, disallowing deferred updates, and meeting a specified criterion are all possible reasons for finishing deferred updates.
An error will be returned if deferred updates end before the specified criteria are met (see CLError), otherwise error will be nil.
default void locationManagerDidRangeBeaconsInRegion(CLLocationManager manager, NSArray<? extends CLBeacon> beacons, CLBeaconRegion region)
Discussion: Invoked when a new set of beacons are available in the specified region. beacons is an array of CLBeacon objects. If beacons is empty, it may be assumed no beacons that match the specified region are nearby. Similarly if a specific beacon no longer appears in beacons, it may be assumed the beacon is no longer received by the device.
default void locationManagerDidStartMonitoringForRegion(CLLocationManager manager, CLRegion region)
Discussion: Invoked when a monitoring for a region started successfully.
default void locationManagerDidUpdateHeading(CLLocationManager manager, CLHeading newHeading)
Discussion: Invoked when a new heading is available.
default void locationManagerDidUpdateLocations(CLLocationManager manager, NSArray<? extends CLLocation> locations)
Discussion: Invoked when new locations are available. Required for delivery of deferred locations. If implemented, updates will not be delivered to locationManager:didUpdateToLocation:fromLocation:
locations is an array of CLLocation objects in chronological order.
@Deprecated default void locationManagerDidUpdateToLocationFromLocation(CLLocationManager manager, CLLocation newLocation, CLLocation oldLocation)
Discussion: Invoked when a new location is available. oldLocation may be nil if there is no previous location available.
This method is deprecated. If locationManager:didUpdateLocations: is implemented, this method will not be called.
default void locationManagerDidVisit(CLLocationManager manager, CLVisit visit)
Discussion: Invoked when the CLLocationManager determines that the device has visited a location, if visit monitoring is currently started (possibly from a prior launch).
default void locationManagerMonitoringDidFailForRegionWithError(CLLocationManager manager, CLRegion region, NSError error)
Discussion: Invoked when a region monitoring error has occurred. Error types are defined in "CLError.h".
default void locationManagerRangingBeaconsDidFailForRegionWithError(CLLocationManager manager, CLBeaconRegion region, NSError error)
Discussion: Invoked when an error has occurred ranging beacons in a region. Error types are defined in "CLError.h".
default void locationManagerDidPauseLocationUpdates(CLLocationManager manager)
default void locationManagerDidResumeLocationUpdates(CLLocationManager manager)
In the event that your application is terminated while suspended, you will not receive this notification.
default boolean locationManagerShouldDisplayHeadingCalibration(CLLocationManager manager)
Discussion: Invoked when a new heading is available. Return YES to display heading calibration info. The display will remain until heading is calibrated, unless dismissed early via dismissHeadingCalibrationDisplay.
default void locationManagerDidFailRangingBeaconsForConstraintError(CLLocationManager manager, CLBeaconIdentityConstraint beaconConstraint, NSError error)
default void locationManagerDidRangeBeaconsSatisfyingConstraint(CLLocationManager manager, NSArray<? extends CLBeacon> beacons, CLBeaconIdentityConstraint beaconConstraint)
default void locationManagerDidChangeAuthorization(CLLocationManager manager)
Discussion: Invoked when either the authorizationStatus or accuracyAuthorization properties change