Compartir a través de


CBCentralManager.RetrieveConnectedPeripherals Método

Definición

Sobrecargas

RetrieveConnectedPeripherals()

Los desarrolladores no deben usar este método en desuso. Los desarrolladores deben usar "RetrievePeripheralsWithIdentifiers" en su lugar.

RetrieveConnectedPeripherals(CBUUID[])

Devuelve todos los periféricos conectados que tienen servicios identificados por el especificado serviceUUIDs.

RetrieveConnectedPeripherals()

Los desarrolladores no deben usar este método en desuso. Los desarrolladores deben usar "RetrievePeripheralsWithIdentifiers" en su lugar.

[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

Se aplica a

RetrieveConnectedPeripherals(CBUUID[])

Devuelve todos los periféricos conectados que tienen servicios identificados por el 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[]

Devoluciones

Atributos

Se aplica a