Class BluetoothGatt
public class BluetoothGatt : BluetoothProfile, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IBluetoothProfile
- Inheritance
-
BluetoothGatt
- Implements
- Inherited Members
- Extension Methods
Constructors
BluetoothGatt(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public BluetoothGatt(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
CONNECTION_PRIORITY_BALANCED
public static int CONNECTION_PRIORITY_BALANCED { get; set; }
Property Value
CONNECTION_PRIORITY_DCK
https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#CONNECTION_PRIORITY_DCK
public static int CONNECTION_PRIORITY_DCK { get; set; }
Property Value
CONNECTION_PRIORITY_HIGH
public static int CONNECTION_PRIORITY_HIGH { get; set; }
Property Value
CONNECTION_PRIORITY_LOW_POWER
public static int CONNECTION_PRIORITY_LOW_POWER { get; set; }
Property Value
GATT_CONNECTION_CONGESTED
public static int GATT_CONNECTION_CONGESTED { get; set; }
Property Value
GATT_CONNECTION_TIMEOUT
https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#GATT_CONNECTION_TIMEOUT
public static int GATT_CONNECTION_TIMEOUT { get; set; }
Property Value
GATT_FAILURE
public static int GATT_FAILURE { get; set; }
Property Value
GATT_INSUFFICIENT_AUTHENTICATION
public static int GATT_INSUFFICIENT_AUTHENTICATION { get; set; }
Property Value
GATT_INSUFFICIENT_AUTHORIZATION
public static int GATT_INSUFFICIENT_AUTHORIZATION { get; set; }
Property Value
GATT_INSUFFICIENT_ENCRYPTION
public static int GATT_INSUFFICIENT_ENCRYPTION { get; set; }
Property Value
GATT_INVALID_ATTRIBUTE_LENGTH
public static int GATT_INVALID_ATTRIBUTE_LENGTH { get; set; }
Property Value
GATT_INVALID_OFFSET
public static int GATT_INVALID_OFFSET { get; set; }
Property Value
GATT_READ_NOT_PERMITTED
https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#GATT_READ_NOT_PERMITTED
public static int GATT_READ_NOT_PERMITTED { get; set; }
Property Value
GATT_REQUEST_NOT_SUPPORTED
public static int GATT_REQUEST_NOT_SUPPORTED { get; set; }
Property Value
GATT_SUCCESS
public static int GATT_SUCCESS { get; set; }
Property Value
GATT_WRITE_NOT_PERMITTED
public static int GATT_WRITE_NOT_PERMITTED { get; set; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
AbortReliableWrite()
public void AbortReliableWrite()
AbortReliableWrite(BluetoothDevice)
[Obsolete("Deprecated in JVM")]
public void AbortReliableWrite(BluetoothDevice arg0)
Parameters
BeginReliableWrite()
public bool BeginReliableWrite()
Returns
Close()
public void Close()
Connect()
public bool Connect()
Returns
Disconnect()
public void Disconnect()
DiscoverServices()
public bool DiscoverServices()
Returns
ExecuteReliableWrite()
public bool ExecuteReliableWrite()
Returns
GetConnectedDevices()
[Obsolete("Deprecated in JVM")]
public List<BluetoothDevice> GetConnectedDevices()
Returns
GetConnectionState(BluetoothDevice)
[Obsolete("Deprecated in JVM")]
public int GetConnectionState(BluetoothDevice arg0)
Parameters
Returns
GetDevice()
public BluetoothDevice GetDevice()
Returns
GetDevicesMatchingConnectionStates(int[])
[Obsolete("Deprecated in JVM")]
public List<BluetoothDevice> GetDevicesMatchingConnectionStates(int[] arg0)
Parameters
Returns
GetService(UUID)
public BluetoothGattService GetService(UUID arg0)
Parameters
Returns
GetServices()
public List<BluetoothGattService> GetServices()
Returns
ReadCharacteristic(BluetoothGattCharacteristic)
public bool ReadCharacteristic(BluetoothGattCharacteristic arg0)
Parameters
Returns
ReadDescriptor(BluetoothGattDescriptor)
public bool ReadDescriptor(BluetoothGattDescriptor arg0)
Parameters
Returns
ReadPhy()
public void ReadPhy()
ReadRemoteRssi()
public bool ReadRemoteRssi()
Returns
RequestConnectionPriority(int)
public bool RequestConnectionPriority(int arg0)
Parameters
Returns
RequestMtu(int)
public bool RequestMtu(int arg0)
Parameters
Returns
SetCharacteristicNotification(BluetoothGattCharacteristic, bool)
public bool SetCharacteristicNotification(BluetoothGattCharacteristic arg0, bool arg1)
Parameters
Returns
SetPreferredPhy(int, int, int)
public void SetPreferredPhy(int arg0, int arg1, int arg2)
Parameters
WriteCharacteristic(BluetoothGattCharacteristic)
[Obsolete("Deprecated in JVM")]
public bool WriteCharacteristic(BluetoothGattCharacteristic arg0)
Parameters
Returns
WriteCharacteristic(BluetoothGattCharacteristic, byte[], int)
public int WriteCharacteristic(BluetoothGattCharacteristic arg0, byte[] arg1, int arg2)
Parameters
arg0BluetoothGattCharacteristicarg1byte[]arg2int
Returns
WriteDescriptor(BluetoothGattDescriptor)
[Obsolete("Deprecated in JVM")]
public bool WriteDescriptor(BluetoothGattDescriptor arg0)
Parameters
Returns
WriteDescriptor(BluetoothGattDescriptor, byte[])
public int WriteDescriptor(BluetoothGattDescriptor arg0, byte[] arg1)
Parameters
arg0BluetoothGattDescriptorarg1byte[]