BluetoothGattServerCallback 类

定义

此抽象类用于实现 BluetoothGattServer 回调。

[Android.Runtime.Register("android/bluetooth/BluetoothGattServerCallback", DoNotGenerateAcw=true)]
public abstract class BluetoothGattServerCallback : Java.Lang.Object
[<Android.Runtime.Register("android/bluetooth/BluetoothGattServerCallback", DoNotGenerateAcw=true)>]
type BluetoothGattServerCallback = class
    inherit Object
继承
BluetoothGattServerCallback
属性

注解

此抽象类用于实现 BluetoothGattServer 回调。

Java文档android.bluetooth.BluetoothGattServerCallback

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

构造函数

名称 说明
BluetoothGattServerCallback()
BluetoothGattServerCallback(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

属性

名称 说明
Class

返回此 Object的运行时类。

(继承自 Object)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
JniPeerMembers

此抽象类用于实现 BluetoothGattServer 回调。

PeerReference

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

方法

名称 说明
Clone()

创建并返回此对象的副本。

(继承自 Object)
Dispose()

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
Dispose(Boolean)

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
OnCharacteristicReadRequest(BluetoothDevice, Int32, Int32, BluetoothGattCharacteristic)

远程客户端已请求读取本地特征。

OnCharacteristicWriteRequest(BluetoothDevice, Int32, BluetoothGattCharacteristic, Boolean, Boolean, Int32, Byte[])

远程客户端已请求写入本地特征。

OnConnectionStateChange(BluetoothDevice, ProfileState, ProfileState)

指示远程设备何时连接或断开连接的回调。

OnDescriptorReadRequest(BluetoothDevice, Int32, Int32, BluetoothGattDescriptor)

远程客户端已请求读取本地描述符。

OnDescriptorWriteRequest(BluetoothDevice, Int32, BluetoothGattDescriptor, Boolean, Boolean, Int32, Byte[])

远程客户端已请求写入本地描述符。

OnExecuteWrite(BluetoothDevice, Int32, Boolean)

为此设备执行所有挂起的写入操作。

OnMtuChanged(BluetoothDevice, Int32)

指示给定设备连接的 MTU 已更改的回调。

OnNotificationSent(BluetoothDevice, GattStatus)

通知或指示已发送到远程设备时调用的回调。

OnPhyRead(BluetoothDevice, ScanSettingsPhy, ScanSettingsPhy, GattStatus)

由于以下原因触发的回调 BluetoothGattServer#readPhy

OnPhyUpdate(BluetoothDevice, ScanSettingsPhy, ScanSettingsPhy, GattStatus)

由于或远程设备更改 PHY 而 BluetoothGattServer#setPreferredPhy触发的回调。

OnServiceAdded(GattStatus, BluetoothGattService)

指示是否已成功添加本地服务。

OnServiceAdded(ProfileState, BluetoothGattService)
已过时.

指示是否已成功添加本地服务。

SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
ToArray<T>()

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
Wait()

使当前线程等待,直到唤醒它,通常是通过 em 通知/em> 或 <em>interrupted</em>。<><

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)

显式接口实现

名称 说明
IJavaPeerable.Disposed()

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
IJavaPeerable.Finalized()

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
IJavaPeerable.JniManagedPeerState

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

此抽象类用于实现 BluetoothGattServer 回调。

(继承自 Object)

扩展方法

名称 说明
GetJniTypeName(IJavaPeerable)

获取实例 self类型的 JNI 名称。

JavaAs<TResult>(IJavaPeerable)

尝试强制self键入TResult,检查强制是否在Java端有效。

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

此抽象类用于实现 BluetoothGattServer 回调。

TryJavaCast<TResult>(IJavaPeerable, TResult)

尝试强制self键入TResult,检查强制是否在Java端有效。

适用于