Instance Method

initWithProximityUUID:major:minor:identifier:

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

Declaration

- (instancetype)initWithProximityUUID:(NSUUID *)proximityUUID major:(CLBeaconMajorValue)major minor:(CLBeaconMinorValue)minor identifier:(NSString *)identifier;

Parameters

proximityUUID

The proximity ID of the beacon being targeted. This value must not be nil.

major

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

minor

The minor value that you use to identify a specific beacon.

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 the beacon with the specified proximityUUID, major, and minor values.

See Also

Initializing the Beacon Region

- initWithBeaconIdentityConstraint:identifier:

Initializes and returns a region object that targets beacons that satisfy the specified beacon identity constraints.

- initWithUUID:identifier:

Initializes and returns a region object that targets beacons with the specified UUID.

- initWithUUID:major:identifier:

Initializes and returns a region object that targets beacons with the specified UUID and major value.

- initWithUUID:major:minor:identifier:

Initializes and returns a region object that targets beacons with the specified UUID, major, and minor values.

- initWithProximityUUID:identifier:

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

Deprecated
- initWithProximityUUID:major:identifier:

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

Deprecated