Compartilhar via


BluetoothGattServer.AddService(BluetoothGattService) Método

Definição

Adicione um serviço à lista de serviços a serem hospedados.

[Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool AddService (Android.Bluetooth.BluetoothGattService? service);
[<Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.AddService : Android.Bluetooth.BluetoothGattService -> bool

Parâmetros

service
BluetoothGattService

Serviço a ser adicionado à lista de serviços fornecidos por este dispositivo.

Retornos

true, se a solicitação para adicionar serviço tiver sido iniciada

Atributos

Comentários

Documentação Java para android.bluetooth.BluetoothGattServer.addService(android.bluetooth.BluetoothGattService).

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

Aplica-se a