共用方式為


CBPeripheralManagerDelegate.DidPublishL2CapChannel 方法

定義

[Foundation.Export("peripheralManager:didPublishL2CAPChannel:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidPublishL2CapChannel (CoreBluetooth.CBPeripheralManager peripheral, ushort psm, Foundation.NSError error);
abstract member DidPublishL2CapChannel : CoreBluetooth.CBPeripheralManager * uint16 * Foundation.NSError -> unit
override this.DidPublishL2CapChannel : CoreBluetooth.CBPeripheralManager * uint16 * Foundation.NSError -> unit

參數

peripheral
CBPeripheralManager
psm
UInt16
error
NSError

即將加入。

這個參數可以是 null

屬性

適用於