共用方式為


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[]

傳回

屬性

適用於