Initializer

init(proximityUUID:major:identifier:)

Initializes and returns a region object that targets a beacon with the specified proximity ID and major value.

Declaration

init(proximityUUID: UUID, major: CLBeaconMajorValue, identifier: String)

Parameters

proximityUUID

The unique ID of the beacons being targeted. This value must not be nil.

major

The major value that you use to identify one or more beacons.

identifier

A unique identifier to associate with the returned region object. You use this identifier to differentiate regions within your application. This value must not be nil.

Return Value

An initialized beacon region object.

Discussion

This method creates a region that reports all beacons with the specified proximityUUID and major values. The beacon’s minor value is ignored.

See Also

Initializing the Beacon Region

init(proximityUUID: UUID, identifier: String)

Initializes and returns a region object that targets a beacon with the specified proximity ID.

init(proximityUUID: UUID, major: CLBeaconMajorValue, minor: CLBeaconMinorValue, identifier: String)

Initializes and returns a region object that targets a beacon with the specified proximity ID, major value, and minor value.