Allows a client to register for a channel close notification.
- macOS 10.6+
The target RFCOMM channel
Callback to be called when the RFCOMM channel is closed.
Client-supplied refCon to be passed to the callback.
Returns an IOBluetoothUserNotificationRef representing the outstanding RFCOMM channel close notification. To unregister the notification, call IOBluetoothUserNotificationUnregister() with the returned IOBluetoothUserNotificationRef. If an error is encountered creating the notification, NULL is returned. The returned IOBluetoothUserNotificationRef will be valid for as long as the notification is registered. It is not necessary to retain the result. Once the notification is unregistered, it will no longer be valid.
The given callback will be called when the RFCOMM channel is closed.