CBCentralManager.RetrieveConnectedPeripherals 方法

定义

重载

RetrieveConnectedPeripherals()

开发人员不应使用此已弃用的方法。 开发人员应改用“RetrievePeripheralsWithIdentifiers”。

RetrieveConnectedPeripherals(CBUUID[])

返回具有由指定的 serviceUUIDs标识的服务的所有连接的外围设备。

RetrieveConnectedPeripherals()

开发人员不应使用此已弃用的方法。 开发人员应改用“RetrievePeripheralsWithIdentifiers”。

[Foundation.Export("retrieveConnectedPeripherals")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'RetrievePeripheralsWithIdentifiers' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 7, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Obsoleted(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'RetrievePeripheralsWithIdentifiers' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void RetrieveConnectedPeripherals ();
abstract member RetrieveConnectedPeripherals : unit -> unit
override this.RetrieveConnectedPeripherals : unit -> unit
属性

适用于

RetrieveConnectedPeripherals(CBUUID[])

返回具有由指定的 serviceUUIDs标识的服务的所有连接的外围设备。

[Foundation.Export("retrieveConnectedPeripheralsWithServices:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreBluetooth.CBPeripheral[] RetrieveConnectedPeripherals (params CoreBluetooth.CBUUID[] serviceUUIDs);
abstract member RetrieveConnectedPeripherals : CoreBluetooth.CBUUID[] -> CoreBluetooth.CBPeripheral[]
override this.RetrieveConnectedPeripherals : CoreBluetooth.CBUUID[] -> CoreBluetooth.CBPeripheral[]

参数

serviceUUIDs
CBUUID[]

返回

属性

适用于