Udostępnij za pośrednictwem


BluetoothGattCharacteristic Class

Definition

Represents a Bluetooth GATT Characteristic

[Android.Runtime.Register("android/bluetooth/BluetoothGattCharacteristic", DoNotGenerateAcw=true)]
public class BluetoothGattCharacteristic : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/bluetooth/BluetoothGattCharacteristic", DoNotGenerateAcw=true)>]
type BluetoothGattCharacteristic = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
BluetoothGattCharacteristic
Attributes
Implements

Remarks

Java documentation for android.bluetooth.BluetoothGattCharacteristic.

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.

Constructors

BluetoothGattCharacteristic(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

BluetoothGattCharacteristic(UUID, GattProperty, GattPermission)

Create a new BluetoothGattCharacteristic.

Fields

FormatFloat
Obsolete.

Characteristic value format type float (32-bit float)

FormatSfloat
Obsolete.

Characteristic value format type sfloat (16-bit float)

FormatSint16
Obsolete.

Characteristic value format type sint16

FormatSint32
Obsolete.

Characteristic value format type sint32

FormatSint8
Obsolete.

Characteristic value format type sint8

FormatUint16
Obsolete.

Characteristic value format type uint16

FormatUint32
Obsolete.

Characteristic value format type uint32

FormatUint8
Obsolete.

Characteristic value format type uint8

PermissionRead
Obsolete.

Characteristic read permission

PermissionReadEncrypted
Obsolete.

Characteristic permission: Allow encrypted read operations

PermissionReadEncryptedMitm
Obsolete.

Characteristic permission: Allow reading with person-in-the-middle protection

PermissionWrite
Obsolete.

Characteristic write permission

PermissionWriteEncrypted
Obsolete.

Characteristic permission: Allow encrypted writes

PermissionWriteEncryptedMitm
Obsolete.

Characteristic permission: Allow encrypted writes with person-in-the-middle protection

PermissionWriteSigned
Obsolete.

Characteristic permission: Allow signed write operations

PermissionWriteSignedMitm
Obsolete.

Characteristic permission: Allow signed write operations with person-in-the-middle protection

PropertyBroadcast
Obsolete.

Characteristic proprty: Characteristic is broadcastable.

PropertyExtendedProps
Obsolete.

Characteristic property: Characteristic has extended properties

PropertyIndicate
Obsolete.

Characteristic property: Characteristic supports indication

PropertyNotify
Obsolete.

Characteristic property: Characteristic supports notification

PropertyRead
Obsolete.

Characteristic property: Characteristic is readable.

PropertySignedWrite
Obsolete.

Characteristic property: Characteristic supports write with signature

PropertyWrite
Obsolete.

Characteristic property: Characteristic can be written.

PropertyWriteNoResponse
Obsolete.

Characteristic property: Characteristic can be written without response.

WriteTypeDefault
Obsolete.

Write characteristic, requesting acknoledgement by the remote device

WriteTypeNoResponse
Obsolete.

Write characteristic without requiring a response by the remote device

WriteTypeSigned
Obsolete.

Write characteristic including authentication signature

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
Descriptors

Returns a list of descriptors for this characteristic.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
InstanceId

Returns the instance ID for this characteristic.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
MDescriptors

List of descriptors included in this characteristic.

PeerReference (Inherited from Object)
Permissions

Returns the permissions for this characteristic.

Properties

Returns the properties of this characteristic.

Service

Returns the service this characteristic belongs to.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Uuid

Returns the UUID of this characteristic

WriteType

Gets the write type for this characteristic. -or- Set the write type for this characteristic

Methods

AddDescriptor(BluetoothGattDescriptor)

Adds a descriptor to this characteristic.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetDescriptor(UUID)

Returns a descriptor with a given UUID out of the list of descriptors for this characteristic.

GetFloatValue(GattFormat, Int32)

Return the stored value of this characteristic.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetIntValue(GattFormat, Int32)

Return the stored value of this characteristic.

GetStringValue(Int32)

Return the stored value of this characteristic.

GetValue()

Get the stored value for this characteristic.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetValue(Byte[])

Updates the locally stored value of this characteristic.

SetValue(Int32, GattFormat, Int32)

Set the locally stored value of this characteristic.

SetValue(Int32, Int32, GattFormat, Int32)

Set the locally stored value of this characteristic.

SetValue(String)

Set the locally stored value of this characteristic.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to