語言

BluetoothGattService.AddService(BluetoothGattService) 方法

定義

在此服務中新增一項包含的服務。

[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

參數

service
BluetoothGattService

待新增服務

傳回

如果包含的服務被加入服務,則成立

屬性

備註

在此服務中新增一項包含的服務。

Java 文件 android.bluetooth.BluetoothGattService.addService(android.bluetooth.BluetoothGattService)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於