BluetoothGattServerCallback.OnServiceAdded Método

Definição

Sobrecargas

Nome Description
OnServiceAdded(GattStatus, BluetoothGattService)

Indica se um serviço local foi adicionado com êxito.

OnServiceAdded(ProfileState, BluetoothGattService)
Obsoleto.

Indica se um serviço local foi adicionado com êxito.

OnServiceAdded(GattStatus, BluetoothGattService)

Indica se um serviço local foi adicionado com êxito.

[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

Retorna BluetoothGatt#GATT_SUCCESS se o serviço foi adicionado com êxito.

service
BluetoothGattService

O serviço que foi adicionado

Atributos

Comentários

Indica se um serviço local foi adicionado com êxito.

Java documentação para android.bluetooth.BluetoothGattServerCallback.onServiceAdded(int, android.bluetooth.BluetoothGattService).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a

OnServiceAdded(ProfileState, BluetoothGattService)

Cuidado

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

Indica se um serviço local foi adicionado com êxito.

[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

Retorna GattSuccess se o serviço foi adicionado com êxito.

service
BluetoothGattService

O serviço que foi adicionado

Atributos

Comentários

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a