Lenguaje

BluetoothGattServerCallback.OnServiceAdded Método

Definición

Sobrecargas

Nombre Description
OnServiceAdded(GattStatus, BluetoothGattService)

Indica si un servicio local se ha agregado correctamente.

OnServiceAdded(ProfileState, BluetoothGattService)
Obsoletos.

Indica si un servicio local se ha agregado correctamente.

OnServiceAdded(GattStatus, BluetoothGattService)

Indica si un servicio local se ha agregado correctamente.

[Android.Runtime.Register("onServiceAdded", "(ILandroid/bluetooth/BluetoothGattService;)V", "GetOnServiceAdded_ILandroid_bluetooth_BluetoothGattService_Handler")]
public virtual void OnServiceAdded(Android.Bluetooth.GattStatus status, Android.Bluetooth.BluetoothGattService? service);
[<Android.Runtime.Register("onServiceAdded", "(ILandroid/bluetooth/BluetoothGattService;)V", "GetOnServiceAdded_ILandroid_bluetooth_BluetoothGattService_Handler")>]
abstract member OnServiceAdded : Android.Bluetooth.GattStatus * Android.Bluetooth.BluetoothGattService -> unit
override this.OnServiceAdded : Android.Bluetooth.GattStatus * Android.Bluetooth.BluetoothGattService -> unit

Parámetros

status
GattStatus

Devuelve BluetoothGatt#GATT_SUCCESS si el servicio se agregó correctamente.

service
BluetoothGattService

El servicio que se ha agregado

Atributos

Comentarios

Indica si un servicio local se ha agregado correctamente.

Java documentación para android.bluetooth.BluetoothGattServerCallback.onServiceAdded(int, android.bluetooth.BluetoothGattService).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

OnServiceAdded(ProfileState, BluetoothGattService)

Precaución

Use OnServiceAdded(Android.Bluetooth.GattStatus, Android.Bluetooth.BluetoothGattService)

Indica si un servicio local se ha agregado correctamente.

[Android.Runtime.Register("onServiceAdded", "(ILandroid/bluetooth/BluetoothGattService;)V", "GetOnServiceAdded_ILandroid_bluetooth_BluetoothGattService_Handler_ext")]
[System.Obsolete("Use OnServiceAdded(Android.Bluetooth.GattStatus, Android.Bluetooth.BluetoothGattService)", true)]
public virtual void OnServiceAdded(Android.Bluetooth.ProfileState status, Android.Bluetooth.BluetoothGattService service);
[<Android.Runtime.Register("onServiceAdded", "(ILandroid/bluetooth/BluetoothGattService;)V", "GetOnServiceAdded_ILandroid_bluetooth_BluetoothGattService_Handler_ext")>]
[<System.Obsolete("Use OnServiceAdded(Android.Bluetooth.GattStatus, Android.Bluetooth.BluetoothGattService)", true)>]
abstract member OnServiceAdded : Android.Bluetooth.ProfileState * Android.Bluetooth.BluetoothGattService -> unit
override this.OnServiceAdded : Android.Bluetooth.ProfileState * Android.Bluetooth.BluetoothGattService -> unit

Parámetros

status
ProfileState

Devuelve GattSuccess si el servicio se agregó correctamente.

service
BluetoothGattService

El servicio que se ha agregado

Atributos

Comentarios

Indica si un servicio local se ha agregado correctamente.

Referencia de Android para android.bluetooth.BluetoothGattServerCallback.onServiceAdded.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a