BluetoothManager.OpenGattServer(Context, BluetoothGattServerCallback) BluetoothManager.OpenGattServer(Context, BluetoothGattServerCallback) Method

Definition

Open a GATT Server The callback is used to deliver results to Caller, such as connection status as well as the results of any other GATT server operations.

[Android.Runtime.Register("openGattServer", "(Landroid/content/Context;Landroid/bluetooth/BluetoothGattServerCallback;)Landroid/bluetooth/BluetoothGattServer;", "")]
public Android.Bluetooth.BluetoothGattServer OpenGattServer (Android.Content.Context context, Android.Bluetooth.BluetoothGattServerCallback callback);
member this.OpenGattServer : Android.Content.Context * Android.Bluetooth.BluetoothGattServerCallback -> Android.Bluetooth.BluetoothGattServer

Parameters

context
Context Context

App context

callback
BluetoothGattServerCallback BluetoothGattServerCallback

GATT server callback handler that will receive asynchronous callbacks.

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to