次の方法で共有


BluetoothGattServer.AddService(BluetoothGattService) メソッド

定義

ホストするサービスの一覧にサービスを追加します。

[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

パラメーター

service
BluetoothGattService

このデバイスによって提供されるサービスの一覧に追加されるサービス。

戻り値

サービスを追加する要求が開始された場合は true

属性

注釈

の Java ドキュメントandroid.bluetooth.BluetoothGattServer.addService(android.bluetooth.BluetoothGattService)

このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。

適用対象