BluetoothGattService 类

定义

表示蓝牙 GATT 服务

[Android.Runtime.Register("android/bluetooth/BluetoothGattService", DoNotGenerateAcw=true)]
public class BluetoothGattService : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/bluetooth/BluetoothGattService", DoNotGenerateAcw=true)>]
type BluetoothGattService = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
继承
BluetoothGattService
属性
实现

注解

适用于 . 的 android.bluetooth.BluetoothGattServiceJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

构造函数

BluetoothGattService(IntPtr, JniHandleOwnership)

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

BluetoothGattService(UUID, GattServiceType)

创建新的 BluetoothGattService。

字段

ServiceTypePrimary
已过时.

主要服务

ServiceTypeSecondary
已过时.

辅助服务(主要服务包括)

属性

Characteristics

返回此服务中包含的特征列表。

Class

返回此 Object的运行时类。

(继承自 Object)
Creator

表示蓝牙 GATT 服务

Handle

基础 Android 实例的句柄。

(继承自 Object)
IncludedServices

获取此服务的包含 GATT 服务的列表。

InstanceId

返回此服务的实例 ID

JniIdentityHashCode

表示蓝牙 GATT 服务

(继承自 Object)
JniPeerMembers

表示蓝牙 GATT 服务

MCharacteristics

此服务中包含的特征列表。

MIncludedServices

此服务包含的服务列表。

PeerReference

表示蓝牙 GATT 服务

(继承自 Object)
ThresholdClass

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

ThresholdType

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

Type

获取此服务的类型(主/辅助)

Uuid

返回此服务的 UUID

方法

AddCharacteristic(BluetoothGattCharacteristic)

向此服务添加特征。

AddService(BluetoothGattService)

将包含的服务添加到此服务。

Clone()

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

(继承自 Object)
DescribeContents()

表示蓝牙 GATT 服务

Dispose()

表示蓝牙 GATT 服务

(继承自 Object)
Dispose(Boolean)

表示蓝牙 GATT 服务

(继承自 Object)
Equals(Object)

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

(继承自 Object)
GetCharacteristic(UUID)

从此服务提供的特征列表中返回具有给定 UUID 的特征。

GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

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

(继承自 Object)
Notify()

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

(继承自 Object)
NotifyAll()

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

(继承自 Object)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

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

表示蓝牙 GATT 服务

(继承自 Object)
ToString()

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

(继承自 Object)
UnregisterFromRuntime()

表示蓝牙 GATT 服务

(继承自 Object)
Wait()

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

(继承自 Object)
Wait(Int64)

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

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

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

(继承自 Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

表示蓝牙 GATT 服务

显式接口实现

IJavaPeerable.Disposed()

表示蓝牙 GATT 服务

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

表示蓝牙 GATT 服务

(继承自 Object)
IJavaPeerable.Finalized()

表示蓝牙 GATT 服务

(继承自 Object)
IJavaPeerable.JniManagedPeerState

表示蓝牙 GATT 服务

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

表示蓝牙 GATT 服务

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

表示蓝牙 GATT 服务

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

表示蓝牙 GATT 服务

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

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

JavaCast<TResult>(IJavaObject)

表示蓝牙 GATT 服务

GetJniTypeName(IJavaPeerable)

表示蓝牙 GATT 服务

适用于