Lenguaje

BluetoothGattService.AddService(BluetoothGattService) Método

Definición

Agregue un servicio incluido a este servicio.

[Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "GetAddService_Landroid_bluetooth_BluetoothGattService_Handler")]
public virtual bool AddService(Android.Bluetooth.BluetoothGattService? service);
[<Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "GetAddService_Landroid_bluetooth_BluetoothGattService_Handler")>]
abstract member AddService : Android.Bluetooth.BluetoothGattService -> bool
override this.AddService : Android.Bluetooth.BluetoothGattService -> bool

Parámetros

service
BluetoothGattService

El servicio que se va a agregar.

Devoluciones

true, si el servicio incluido se agregó al servicio

Atributos

Comentarios

Agregue un servicio incluido a este servicio.

Java documentación para android.bluetooth.BluetoothGattService.addService(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