public interface CLLocationManagerDelegate
Modifier and Type | Method and Description |
---|---|
default void |
didEnterRegion(CLLocationManager manager,
CLRegion region)
It is used when the user has entered the specified region.
|
default void |
didExitRegion(CLLocationManager manager,
CLRegion region)
It is used when the user has left the specified region.
|
default void |
didFailWithError(CLLocationManager manager,
NSError error)
Deprecated.
|
default void |
didUpdateHeading(CLLocationManager manager,
CLHeading newHeading)
It is used when updated heading information was retrieved.
|
default void |
didUpdateToLocation(CLLocationManager manager,
CLLocation newLocation,
CLLocation oldLocation)
Deprecated.
|
default void |
monitoringDidFailForRegion(CLLocationManager manager,
CLRegion region,
NSError error)
It is used in order to handle region monitoring error.
|
default boolean |
shouldDisplayHeadingCalibration(CLLocationManager manager)
It is used in order to permit the display of a heading calibration alert.
|
@Deprecated default void didUpdateToLocation(CLLocationManager manager, CLLocation newLocation, CLLocation oldLocation)
manager
- The manager that corresponds to this delegate.newLocation
- The new location.oldLocation
- The old location.@Deprecated default void didFailWithError(CLLocationManager manager, NSError error)
manager
- The manager that corresponds to this delegate.error
- The error of the retrieval failure.default void didUpdateHeading(CLLocationManager manager, CLHeading newHeading)
manager
- The manager that corresponds to this delegate.newHeading
- The new heading.default boolean shouldDisplayHeadingCalibration(CLLocationManager manager)
manager
- The manager that corresponds to this delegate.default void didEnterRegion(CLLocationManager manager, CLRegion region)
manager
- The manager that corresponds to this delegate.region
- The region that the user entered.default void didExitRegion(CLLocationManager manager, CLRegion region)
manager
- The manager that corresponds to this delegate.region
- The region that the user has left.default void monitoringDidFailForRegion(CLLocationManager manager, CLRegion region, NSError error)
manager
- The manager that corresponds to this delegate.region
- The region that was monitored.error
- The error that occurred.Copyright © 2020. All rights reserved.