Compartilhar via


CBCentralManager.RetrieveConnectedPeripherals Método

Definição

Sobrecargas

RetrieveConnectedPeripherals()

Os desenvolvedores não devem usar esse método preterido. Os desenvolvedores devem usar 'RetrievePeripheralsWithIdentifiers' em vez disso.

RetrieveConnectedPeripherals(CBUUID[])

Retorna todos os periféricos conectados que têm serviços identificados pelo especificado serviceUUIDs.

RetrieveConnectedPeripherals()

Os desenvolvedores não devem usar esse método preterido. Os desenvolvedores devem usar 'RetrievePeripheralsWithIdentifiers' em vez disso.

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

Aplica-se a

RetrieveConnectedPeripherals(CBUUID[])

Retorna todos os periféricos conectados que têm serviços identificados pelo especificado 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[]

Parâmetros

serviceUUIDs
CBUUID[]

Retornos

Atributos

Aplica-se a