Instance Method

registerForConnectionEventsWithOptions:

Register for an event notification when the central manager makes a connection matching the given options.

Declaration

- (void)registerForConnectionEventsWithOptions:(NSDictionary<CBConnectionEventMatchingOption, id> *)options;

Parameters

options

A dictionary that specifies options for connection events. See Peripheral Connection Options for a list of possible options.

Discussion

When the central manager makes a connection that matches the options, it calls the delegate’s centralManager:connectionEventDidOccur:forPeripheral: method.

See Also

Receiving Connection Events

Peripheral Connection Options

Keys used to pass options when connecting to a peripheral.

CBConnectionEvent

A change to the connection state of a peer.

CBConnectionEventMatchingOption

A set of options to use when registering for connection events.