Platforms to show: All Mac Windows Linux Cross-Platform
Back to CBPeripheralMBS class.
CBPeripheralMBS.DidDiscoverCharacteristicsForService(service as CBServiceMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
peripheral: The peripheral providing this information.
service: The service that the characteristics belong to.
error: If an error occurred, the cause of the failure.
This event is invoked when your app calls the discoverCharacteristics method. If the characteristics of the specified service are successfully discovered, you can access them through the service's characteristics property. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidDiscoverDescriptorsForCharacteristic(characteristic as CBCharacteristicMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
peripheral: The peripheral providing this information.
characteristic: The characteristic that the characteristic descriptors belong to.
error: If an error occurred, the cause of the failure.
This event is invoked when your app calls the discoverDescriptorsForCharacteristic method. If the characteristic descriptors of the specified characteristic are successfully discovered, you can access them through the characteristic’s descriptors property. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidDiscoverIncludedServicesForService(service as CBServiceMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
peripheral: The peripheral providing this information.
service: The CBService object containing the included service.
error: If an error occurred, the cause of the failure.
This event is invoked when you app calls the discoverIncludedServices method. If the included services of the specified service are successfully discovered, you can access them through the service’s includedServices property. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidDiscoverServices(error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
peripheral: The peripheral that the services belong to.
error: If an error occurred, the cause of the failure.
This event is invoked when your app calls the discoverServices method. If the services of the peripheral are successfully discovered, you can access them through the peripheral’s services property. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidModifyServices(invalidatedServices() as CBServiceMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
invalidatedServices: A list of services that have been invalidated.
This method is invoked whenever one or more services of a peripheral have changed. A peripheral’s services have changed if:
- A service is removed from the peripheral’s database
- A new service is added to the peripheral’s database
- A service that was previously removed from the peripheral’s database is readded to the database at a different location
CBPeripheralMBS.DidOpenL2CAPChannel(channel as CBL2CAPChannelMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
CBPeripheralMBS.DidReadRSSI(RSSI as String, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
peripheral: The peripheral providing this information.
RSSI: The RSSI, in decibels, of the peripheral.
error: If an error occurred, the cause of the failure.
This event is invoked when your app calls the readRSSI method. If successful, the error parameter is nil and the parameter RSSI reports the receiver’s signal strength, in decibels. If unsuccessful, the error parameter returns the cause of the failure.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
The event is invoked whenever the peripheral device’s Generic Access Profile (GAP) device name has changed. Since a peripheral device can change its GAP device name, you can implement this method if your app needs to display the current name of the peripheral device.
Some examples using this event:
CBPeripheralMBS.DidUpdateNotificationStateForCharacteristic(characteristic as CBCharacteristicMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
characteristic: The characteristic for which notifications of its value are to be configured.
error: If an error occurred, the cause of the failure.
This event is invoked when your app calls the setNotifyValue method. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidUpdateRSSI(error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
error: If an error occurred, the cause of the failure.
This event is invoked when your app calls the readRSSI method. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidUpdateValueForCharacteristic(characteristic as CBCharacteristicMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
peripheral: The peripheral providing this information.
characteristic: The characteristic whose value has been retrieved.
error: If an error occurred, the cause of the failure.
This method is invoked when your app calls the readValueForCharacteristic: method, or when the peripheral notifies your app that the value of the characteristic for which notifications and indications are enabled (via a successful call to setNotifyValue for Characteristic) has changed. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidUpdateValueForDescriptor(descriptor as CBDescriptorMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
peripheral: The peripheral providing this information.
descriptor: The characteristic descriptor whose value has been retrieved.
error: If an error occurred, the cause of the failure.
This event is invoked when your app calls the readValueForDescriptor method. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidWriteValueForCharacteristic(characteristic as CBCharacteristicMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
peripheral: The peripheral providing this information.
characteristic: The characteristic whose value has been written.
error: If an error occurred, the cause of the failure.
This event is invoked only when your app calls the writeValue for Characteristic method with the CBCharacteristicWriteWithResponse constant specified as the write type. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.DidWriteValueForDescriptor(descriptor as CBDescriptorMBS, error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
descriptor: The characteristic descriptor whose value has been written.
error: If an error occurred, the cause of the failure.
This event is invoked when your app calls the writeValue for Descriptor method. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.
Some examples using this event:
CBPeripheralMBS.IsReadyToSendWriteWithoutResponse
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
This event is invoked after a failed call to writeValue for Characteristic, when peripheral is again ready to send characteristic value updates.
The items on this page are in the following plugins: MBS Bluetooth Plugin.