共用方式為


BluetoothGattServer.Close Method

Definition

Close this GATT server instance.

[Android.Runtime.Register("close", "()V", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void Close ();
[<Android.Runtime.Register("close", "()V", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.Close : unit -> unit
Attributes

Remarks

Close this GATT server instance.

Application should call this method as early as possible after it is done with this GATT server.

Java documentation for android.bluetooth.BluetoothGattServer.close().

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