Compartir a través de


BluetoothGattServerCallback.OnServiceAdded Método

Definición

Sobrecargas

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

Documentación de Java 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 proyecto de código Project y que se usan según los términos 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

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código Project y que se usan según los términos Creative Commons 2.5 Attribution License.

Se aplica a