语言

BluetoothGattServer.Close 方法

定义

关闭此 GATT 服务器实例。

[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
特性

注解

关闭此 GATT 服务器实例。

应用程序应在使用此 GATT 服务器后尽早调用此方法。

Java文档android.bluetooth.BluetoothGattServer.close()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于