CBPeripheral Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a CoreBluetooth peripheral.
[Foundation.Register("CBPeripheral", true)]
public class CBPeripheral : CoreBluetooth.CBPeer, IDisposable
[<Foundation.Register("CBPeripheral", true)>]
type CBPeripheral = class
inherit CBPeer
interface INSCopying
interface INativeObject
interface IDisposable
- Inheritance
- Attributes
- Implements
Remarks
CBPeripherals represent a remote peripheral that the device has discovered or has discovered and connected to.
Constructors
| Name | Description |
|---|---|
| CBPeripheral(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| CBPeripheral(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| AncsAuthorized | |
| CanSendWriteWithoutResponse | |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Delegate |
An instance of the CoreBluetooth.ICBPeripheralDelegate model class which acts as the class delegate. |
| Description | (Inherited from NSObject) |
| ExposedBindings | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| Identifier | (Inherited from CBPeer) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| Name |
Gets the peripheral name. |
| RetainCount | (Inherited from NSObject) |
| RSSI |
Developers should not use this deprecated property. |
| Self | (Inherited from NSObject) |
| Services |
The discovered CBServices of this peripheral. |
| State |
Gets the connection state for the peripheral. |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| WeakDelegate |
An object that can respond to the delegate protocol for this type |
| Zone | (Inherited from NSObject) |
Methods
Events
| Name | Description |
|---|---|
| DidOpenL2CapChannel |
Event raised by the object. |
| DiscoveredCharacteristics |
Event raised by the object. |
| DiscoveredDescriptor |
Event raised by the object. |
| DiscoveredIncludedService |
Event raised by the object. |
| DiscoveredService |
Event raised by the object. |
| IsReadyToSendWriteWithoutResponse |
Event raised by the object. |
| ModifiedServices |
Event raised by the object. |
| RssiRead |
Event raised by the object. |
| RssiUpdated |
Event raised by the object. |
| UpdatedCharacterteristicValue |
Event raised by the object. |
| UpdatedName |
Event raised by the object. |
| UpdatedNotificationState |
Event raised by the object. |
| UpdatedValue |
Event raised by the object. |
| WroteCharacteristicValue |
Event raised by the object. |
| WroteDescriptorValue |
Event raised by the object. |