Android.Bluetooth.BluetoothGatt Members

The members of Android.Bluetooth.BluetoothGatt are listed below.

See Also: Inherited members from Java.Lang.Object

Public Fields

const
ConnectionPriorityBalancedGattConnectionPriority (0). Connection paramter update - Use the connection paramters recommended by the Bluetooth SIG.
const
ConnectionPriorityHighGattConnectionPriority (1). Connection paramter update - Request a high priority, low latency connection.
const
ConnectionPriorityLowPowerGattConnectionPriority (2). Connection paramter update - Request low power, reduced data rate connection parameters.
const
GattConnectionCongestedGattStatus (143). A remote device connection is congested.
const
GattFailureGattStatus (257). A GATT operation failed, errors other than the above
const
GattInsufficientAuthenticationGattStatus (5). Insufficient authentication for a given operation
const
GattInsufficientEncryptionGattStatus (15). Insufficient encryption for a given operation
const
GattInvalidAttributeLengthGattStatus (13). A write operation exceeds the maximum length of the attribute
const
GattInvalidOffsetGattStatus (7). A read or write operation was requested with an invalid offset
const
GattReadNotPermittedGattStatus (2). GATT read operation is not permitted
const
GattRequestNotSupportedGattStatus (6). The given request is not supported
const
GattSuccessGattStatus (0). A GATT operation completed successfully
const
GattWriteNotPermittedGattStatus (3). GATT write operation is not permitted

Public Properties

[read-only]
ConnectedDevicesIList<BluetoothDevice>. Not supported - please use BluetoothManager.GetConnectedDevices(ProfileType) with BluetoothProfile.Gatt as argument
[read-only]
DeviceBluetoothDevice. Return the remote bluetooth device this GATT client targets to
[read-only]
ServicesIList<BluetoothGattService>. Returns a list of GATT services offered by the remote device.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AbortReliableWrite()
Cancels a reliable write transaction for a given device.
AbortReliableWrite(BluetoothDevice)
BeginReliableWrite() : bool
Initiates a reliable write transaction for a given remote device.
Close()
Close this Bluetooth GATT client.
Connect() : bool
Connect back to remote device.
Disconnect()
Disconnects an established connection, or cancels a connection attempt currently in progress.
DiscoverServices() : bool
Discovers services offered by a remote device as well as their characteristics and descriptors.
ExecuteReliableWrite() : bool
Executes a reliable write transaction for a given remote device.
GetConnectionState(BluetoothDevice) : ProfileState
Not supported - please use BluetoothManager.GetConnectedDevices(ProfileType) with BluetoothProfile.Gatt as argument
GetDevicesMatchingConnectionStates(ProfileState[]) : IList<BluetoothDevice>
Not supported - please use BluetoothManager.GetDevicesMatchingConnectionStates(ProfileType, System.Int32[]) with BluetoothProfile.Gatt as first argument
GetService(Java.Util.UUID) : BluetoothGattService
Returns a Android.Bluetooth.BluetoothGattService, if the requested UUID is supported by the remote device.
ReadCharacteristic(BluetoothGattCharacteristic) : bool
Reads the requested characteristic from the associated remote device.
ReadDescriptor(BluetoothGattDescriptor) : bool
Reads the value for a given descriptor from the associated remote device.
ReadRemoteRssi() : bool
Read the RSSI for a connected remote device.
RequestConnectionPriority(GattConnectionPriority) : bool
Request a connection parameter update.
RequestMtu(int) : bool
Request an MTU size used for a given connection.
SetCharacteristicNotification(BluetoothGattCharacteristic, bool) : bool
Enable or disable notifications/indications for a given characteristic.
WriteCharacteristic(BluetoothGattCharacteristic) : bool
Writes a given characteristic and its values to the associated remote device.
WriteDescriptor(BluetoothGattDescriptor) : bool
Write the value of a given descriptor to the associated remote device.