Package apple.corelocation.protocol
Interface CLLocationManagerDelegate
-
public interface CLLocationManagerDelegateCLLocationManagerDelegate Discussion: Delegate for CLLocationManager.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidlocationManagerDidChangeAuthorization(@NotNull CLLocationManager manager)locationManagerDidChangeAuthorization: Discussion: Invoked when either the authorizationStatus or accuracyAuthorization properties change API-Since: 14.0default voidlocationManagerDidChangeAuthorizationStatus(@NotNull CLLocationManager manager, int status)Deprecated.default voidlocationManagerDidDetermineStateForRegion(@NotNull CLLocationManager manager, long state, @NotNull CLRegion region)locationManager:didDetermineState:forRegion: 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 voidlocationManagerDidEnterRegion(@NotNull CLLocationManager manager, @NotNull CLRegion region)locationManager:didEnterRegion: Discussion: Invoked when the user enters a monitored region.default voidlocationManagerDidExitRegion(@NotNull CLLocationManager manager, @NotNull CLRegion region)locationManager:didExitRegion: Discussion: Invoked when the user exits a monitored region.default voidlocationManagerDidFailRangingBeaconsForConstraintError(@NotNull CLLocationManager manager, @NotNull CLBeaconIdentityConstraint beaconConstraint, @NotNull NSError error)API-Since: 13.0default voidlocationManagerDidFailWithError(@NotNull CLLocationManager manager, @NotNull NSError error)locationManager:didFailWithError: Discussion: Invoked when an error has occurred.default voidlocationManagerDidFinishDeferredUpdatesWithError(@NotNull CLLocationManager manager, @Nullable NSError error)locationManager:didFinishDeferredUpdatesWithError: Discussion: Invoked when deferred updates will no longer be delivered.default voidlocationManagerDidPauseLocationUpdates(@NotNull CLLocationManager manager)Discussion: Invoked when location updates are automatically paused.default voidlocationManagerDidRangeBeaconsInRegion(@NotNull CLLocationManager manager, @NotNull NSArray<? extends CLBeacon> beacons, @NotNull CLBeaconRegion region)Deprecated.default voidlocationManagerDidRangeBeaconsSatisfyingConstraint(@NotNull CLLocationManager manager, @NotNull NSArray<? extends CLBeacon> beacons, @NotNull CLBeaconIdentityConstraint beaconConstraint)API-Since: 13.0default voidlocationManagerDidResumeLocationUpdates(@NotNull CLLocationManager manager)Discussion: Invoked when location updates are automatically resumed.default voidlocationManagerDidStartMonitoringForRegion(@NotNull CLLocationManager manager, @NotNull CLRegion region)locationManager:didStartMonitoringForRegion: Discussion: Invoked when a monitoring for a region started successfully.default voidlocationManagerDidUpdateHeading(@NotNull CLLocationManager manager, @NotNull CLHeading newHeading)locationManager:didUpdateHeading: Discussion: Invoked when a new heading is available.default voidlocationManagerDidUpdateLocations(@NotNull CLLocationManager manager, @NotNull NSArray<? extends CLLocation> locations)locationManager:didUpdateLocations: Discussion: Invoked when new locations are available.default voidlocationManagerDidUpdateToLocationFromLocation(@NotNull CLLocationManager manager, @NotNull CLLocation newLocation, @NotNull CLLocation oldLocation)Deprecated.default voidlocationManagerDidVisit(@NotNull CLLocationManager manager, @NotNull CLVisit visit)API-Since: 8.0default voidlocationManagerMonitoringDidFailForRegionWithError(@NotNull CLLocationManager manager, @Nullable CLRegion region, @NotNull NSError error)locationManager:monitoringDidFailForRegion:withError: Discussion: Invoked when a region monitoring error has occurred.default voidlocationManagerRangingBeaconsDidFailForRegionWithError(@NotNull CLLocationManager manager, @NotNull CLBeaconRegion region, @NotNull NSError error)Deprecated.default booleanlocationManagerShouldDisplayHeadingCalibration(@NotNull CLLocationManager manager)API-Since: 3.0
-
-
-
Method Detail
-
locationManagerDidChangeAuthorizationStatus
@Deprecated default void locationManagerDidChangeAuthorizationStatus(@NotNull @NotNull CLLocationManager manager, int status)Deprecated.API-Since: 4.2 Deprecated-Since: 14.0
-
locationManagerDidDetermineStateForRegion
default void locationManagerDidDetermineStateForRegion(@NotNull @NotNull CLLocationManager manager, long state, @NotNull @NotNull CLRegion region)locationManager:didDetermineState:forRegion: 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:. API-Since: 7.0
-
locationManagerDidEnterRegion
default void locationManagerDidEnterRegion(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull CLRegion region)locationManager:didEnterRegion: 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. API-Since: 4.0
-
locationManagerDidExitRegion
default void locationManagerDidExitRegion(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull CLRegion region)locationManager:didExitRegion: 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. API-Since: 4.0
-
locationManagerDidFailWithError
default void locationManagerDidFailWithError(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull NSError error)locationManager:didFailWithError: Discussion: Invoked when an error has occurred. Error types are defined in "CLError.h".
-
locationManagerDidFinishDeferredUpdatesWithError
default void locationManagerDidFinishDeferredUpdatesWithError(@NotNull @NotNull CLLocationManager manager, @Nullable @Nullable NSError error)locationManager:didFinishDeferredUpdatesWithError: 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. API-Since: 6.0
-
locationManagerDidRangeBeaconsInRegion
@Deprecated default void locationManagerDidRangeBeaconsInRegion(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull NSArray<? extends CLBeacon> beacons, @NotNull @NotNull CLBeaconRegion region)Deprecated.locationManager:didRangeBeacons:inRegion: 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. API-Since: 7.0 Deprecated-Since: 13.0
-
locationManagerDidStartMonitoringForRegion
default void locationManagerDidStartMonitoringForRegion(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull CLRegion region)locationManager:didStartMonitoringForRegion: Discussion: Invoked when a monitoring for a region started successfully. API-Since: 5.0
-
locationManagerDidUpdateHeading
default void locationManagerDidUpdateHeading(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull CLHeading newHeading)locationManager:didUpdateHeading: Discussion: Invoked when a new heading is available. API-Since: 3.0
-
locationManagerDidUpdateLocations
default void locationManagerDidUpdateLocations(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull NSArray<? extends CLLocation> locations)locationManager:didUpdateLocations: 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. API-Since: 6.0
-
locationManagerDidUpdateToLocationFromLocation
@Deprecated default void locationManagerDidUpdateToLocationFromLocation(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull CLLocation newLocation, @NotNull @NotNull CLLocation oldLocation)Deprecated.locationManager:didUpdateToLocation:fromLocation: 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. API-Since: 2.0 Deprecated-Since: 6.0 Deprecated-Message: Implement -locationManager:didUpdateLocations: instead
-
locationManagerDidVisit
default void locationManagerDidVisit(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull CLVisit visit)API-Since: 8.0
-
locationManagerMonitoringDidFailForRegionWithError
default void locationManagerMonitoringDidFailForRegionWithError(@NotNull @NotNull CLLocationManager manager, @Nullable @Nullable CLRegion region, @NotNull @NotNull NSError error)locationManager:monitoringDidFailForRegion:withError: Discussion: Invoked when a region monitoring error has occurred. Error types are defined in "CLError.h". API-Since: 4.0
-
locationManagerRangingBeaconsDidFailForRegionWithError
@Deprecated default void locationManagerRangingBeaconsDidFailForRegionWithError(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull CLBeaconRegion region, @NotNull @NotNull NSError error)Deprecated.locationManager:rangingBeaconsDidFailForRegion:withError: Discussion: Invoked when an error has occurred ranging beacons in a region. Error types are defined in "CLError.h". API-Since: 7.0 Deprecated-Since: 13.0
-
locationManagerDidPauseLocationUpdates
default void locationManagerDidPauseLocationUpdates(@NotNull @NotNull CLLocationManager manager)Discussion: Invoked when location updates are automatically paused. API-Since: 6.0
-
locationManagerDidResumeLocationUpdates
default void locationManagerDidResumeLocationUpdates(@NotNull @NotNull CLLocationManager manager)Discussion: Invoked when location updates are automatically resumed. In the event that your application is terminated while suspended, you will not receive this notification. API-Since: 6.0
-
locationManagerShouldDisplayHeadingCalibration
default boolean locationManagerShouldDisplayHeadingCalibration(@NotNull @NotNull CLLocationManager manager)API-Since: 3.0
-
locationManagerDidFailRangingBeaconsForConstraintError
default void locationManagerDidFailRangingBeaconsForConstraintError(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull CLBeaconIdentityConstraint beaconConstraint, @NotNull @NotNull NSError error)API-Since: 13.0
-
locationManagerDidRangeBeaconsSatisfyingConstraint
default void locationManagerDidRangeBeaconsSatisfyingConstraint(@NotNull @NotNull CLLocationManager manager, @NotNull @NotNull NSArray<? extends CLBeacon> beacons, @NotNull @NotNull CLBeaconIdentityConstraint beaconConstraint)API-Since: 13.0
-
locationManagerDidChangeAuthorization
default void locationManagerDidChangeAuthorization(@NotNull @NotNull CLLocationManager manager)locationManagerDidChangeAuthorization: Discussion: Invoked when either the authorizationStatus or accuracyAuthorization properties change API-Since: 14.0
-
-