Share via


ICBPeripheralManagerDelegate Interface

Definition

Delegate object for CBPeripheralManager. Adds methods for events relating to availability, publishing, advertising, and subscription.

[Foundation.Protocol(Name="CBPeripheralManagerDelegate", WrapperType=typeof(CoreBluetooth.CBPeripheralManagerDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="StateUpdated", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager) }, Selector="peripheralManagerDidUpdateState:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillRestoreState", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(Foundation.NSDictionary) }, Selector="peripheralManager:willRestoreState:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="AdvertisingStarted", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(Foundation.NSError) }, Selector="peripheralManagerDidStartAdvertising:error:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ServiceAdded", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBService), typeof(Foundation.NSError) }, Selector="peripheralManager:didAddService:error:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="CharacteristicSubscribed", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBCentral), typeof(CoreBluetooth.CBCharacteristic) }, Selector="peripheralManager:central:didSubscribeToCharacteristic:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="CharacteristicUnsubscribed", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBCentral), typeof(CoreBluetooth.CBCharacteristic) }, Selector="peripheralManager:central:didUnsubscribeFromCharacteristic:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ReadRequestReceived", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBATTRequest) }, Selector="peripheralManager:didReceiveReadRequest:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WriteRequestsReceived", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBATTRequest[]) }, Selector="peripheralManager:didReceiveWriteRequests:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ReadyToUpdateSubscribers", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager) }, Selector="peripheralManagerIsReadyToUpdateSubscribers:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidOpenL2CapChannel", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBL2CapChannel), typeof(Foundation.NSError) }, Selector="peripheralManager:didOpenL2CAPChannel:error:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidUnpublishL2CapChannel", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(System.UInt16), typeof(Foundation.NSError) }, Selector="peripheralManager:didUnpublishL2CAPChannel:error:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidPublishL2CapChannel", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(System.UInt16), typeof(Foundation.NSError) }, Selector="peripheralManager:didPublishL2CAPChannel:error:")]
public interface ICBPeripheralManagerDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="CBPeripheralManagerDelegate", WrapperType=typeof(CoreBluetooth.CBPeripheralManagerDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="StateUpdated", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager) }, Selector="peripheralManagerDidUpdateState:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillRestoreState", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(Foundation.NSDictionary) }, Selector="peripheralManager:willRestoreState:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="AdvertisingStarted", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(Foundation.NSError) }, Selector="peripheralManagerDidStartAdvertising:error:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ServiceAdded", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBService), typeof(Foundation.NSError) }, Selector="peripheralManager:didAddService:error:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="CharacteristicSubscribed", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBCentral), typeof(CoreBluetooth.CBCharacteristic) }, Selector="peripheralManager:central:didSubscribeToCharacteristic:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="CharacteristicUnsubscribed", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBCentral), typeof(CoreBluetooth.CBCharacteristic) }, Selector="peripheralManager:central:didUnsubscribeFromCharacteristic:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ReadRequestReceived", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBATTRequest) }, Selector="peripheralManager:didReceiveReadRequest:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WriteRequestsReceived", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBATTRequest[]) }, Selector="peripheralManager:didReceiveWriteRequests:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ReadyToUpdateSubscribers", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager) }, Selector="peripheralManagerIsReadyToUpdateSubscribers:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidOpenL2CapChannel", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(CoreBluetooth.CBL2CapChannel), typeof(Foundation.NSError) }, Selector="peripheralManager:didOpenL2CAPChannel:error:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidUnpublishL2CapChannel", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(System.UInt16), typeof(Foundation.NSError) }, Selector="peripheralManager:didUnpublishL2CAPChannel:error:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidPublishL2CapChannel", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(CoreBluetooth.CBPeripheralManager), typeof(System.UInt16), typeof(Foundation.NSError) }, Selector="peripheralManager:didPublishL2CAPChannel:error:")>]
type ICBPeripheralManagerDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
AdvertisingStarted(CBPeripheralManager, NSError)
CharacteristicSubscribed(CBPeripheralManager, CBCentral, CBCharacteristic)
CharacteristicUnsubscribed(CBPeripheralManager, CBCentral, CBCharacteristic)
DidOpenL2CapChannel(CBPeripheralManager, CBL2CapChannel, NSError)
DidPublishL2CapChannel(CBPeripheralManager, UInt16, NSError)
DidUnpublishL2CapChannel(CBPeripheralManager, UInt16, NSError)
ReadRequestReceived(CBPeripheralManager, CBATTRequest)
ReadyToUpdateSubscribers(CBPeripheralManager)
ServiceAdded(CBPeripheralManager, CBService, NSError)
StateUpdated(CBPeripheralManager)
WillRestoreState(CBPeripheralManager, NSDictionary)
WriteRequestsReceived(CBPeripheralManager, CBATTRequest[])

Extension Methods

Name Description
AdvertisingStarted(ICBPeripheralManagerDelegate, CBPeripheralManager, NSError)
CharacteristicSubscribed(ICBPeripheralManagerDelegate, CBPeripheralManager, CBCentral, CBCharacteristic)
CharacteristicUnsubscribed(ICBPeripheralManagerDelegate, CBPeripheralManager, CBCentral, CBCharacteristic)
DidOpenL2CapChannel(ICBPeripheralManagerDelegate, CBPeripheralManager, CBL2CapChannel, NSError)
DidPublishL2CapChannel(ICBPeripheralManagerDelegate, CBPeripheralManager, UInt16, NSError)
DidUnpublishL2CapChannel(ICBPeripheralManagerDelegate, CBPeripheralManager, UInt16, NSError)
ReadRequestReceived(ICBPeripheralManagerDelegate, CBPeripheralManager, CBATTRequest)
ReadyToUpdateSubscribers(ICBPeripheralManagerDelegate, CBPeripheralManager)
ServiceAdded(ICBPeripheralManagerDelegate, CBPeripheralManager, CBService, NSError)
WillRestoreState(ICBPeripheralManagerDelegate, CBPeripheralManager, NSDictionary)
WriteRequestsReceived(ICBPeripheralManagerDelegate, CBPeripheralManager, CBATTRequest[])
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to

See also