CLCircularRegion
open class CLCircularRegion : CLRegion
A circular geographic region that you monitor using location services. Apple Documentation
-
Creates a circular region with the specified center point and radius.
Declaration
Swift
public override init(center: CLLocationCoordinate2D, radius: CLLocationDistance, identifier: String)Parameters
centerThe center point of the circular region.
radiusThe radius of the circular region in meters.
identifierA unique identifier for the region. Apple Documentation
-
Creates a circular region from an
NSCoder.Declaration
Swift
required public init?(coder: NSCoder)Parameters
coderThe
NSCoderobject used for decoding.
-
Returns a Boolean value indicating whether the specified coordinate is inside the region.
Declaration
Swift
public override func contains(_ coordinate: CLLocationCoordinate2D) -> BoolParameters
coordinateThe coordinate to test.
Return Value
trueif the coordinate is inside the region; otherwise,false. Apple Documentation
-
Creates a copy of this
CLCircularRegioninstance.Declaration
Swift
public override func copy(with zone: NSZone? = nil) -> AnyParameters
zoneThe zone in which to allocate the new object (default:
nil).Return Value
A new
CLCircularRegionobject with the same properties.
View on GitHub