BluetoothManager.OpenGattServer(Context, BluetoothGattServerCallback) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
GATT サーバーを開く コールバックは、接続状態や他の GATT サーバー操作の結果など、結果を呼び出し元に配信するために使用されます。
[Android.Runtime.Register("openGattServer", "(Landroid/content/Context;Landroid/bluetooth/BluetoothGattServerCallback;)Landroid/bluetooth/BluetoothGattServer;", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.BluetoothGattServer? OpenGattServer(Android.Content.Context? context, Android.Bluetooth.BluetoothGattServerCallback? callback);
[<Android.Runtime.Register("openGattServer", "(Landroid/content/Context;Landroid/bluetooth/BluetoothGattServerCallback;)Landroid/bluetooth/BluetoothGattServer;", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.OpenGattServer : Android.Content.Context * Android.Bluetooth.BluetoothGattServerCallback -> Android.Bluetooth.BluetoothGattServer
パラメーター
- context
- Context
アプリのコンテキスト
- callback
- BluetoothGattServerCallback
非同期コールバックを受け取る GATT サーバー コールバック ハンドラー。
返品
BluetoothGattServer インスタンス
- 属性
注釈
GATT サーバーを開く コールバックは、接続状態や他の GATT サーバー操作の結果など、結果を呼び出し元に配信するために使用されます。 このメソッドは BluetoothGattServer インスタンスを返します。 BluetoothGattServer を使用して GATT サーバー操作を実行できます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。