Class BluetoothGatt
public class BluetoothGatt : BluetoothProfile, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IBluetoothProfile
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<BluetoothProfile>BluetoothGatt
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<BluetoothProfile>.IsAssignableFrom(IJavaType)JVMBridgeBase<BluetoothProfile>.IsAssignableFrom<T>()JVMBridgeBase<BluetoothProfile>.Execute<T>(params T[])JVMBridgeBase<BluetoothProfile>.DynBridgeClazzJVMBridgeBase<BluetoothProfile>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
BluetoothGatt()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public BluetoothGatt()
BluetoothGatt(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public BluetoothGatt(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CONNECTION_PRIORITY_BALANCED
public static int CONNECTION_PRIORITY_BALANCED { get; }
Property Value
CONNECTION_PRIORITY_DCK
https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#CONNECTION_PRIORITY_DCK
public static int CONNECTION_PRIORITY_DCK { get; }
Property Value
CONNECTION_PRIORITY_HIGH
public static int CONNECTION_PRIORITY_HIGH { get; }
Property Value
CONNECTION_PRIORITY_LOW_POWER
public static int CONNECTION_PRIORITY_LOW_POWER { get; }
Property Value
GATT_CONNECTION_CONGESTED
public static int GATT_CONNECTION_CONGESTED { get; }
Property Value
GATT_CONNECTION_TIMEOUT
https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#GATT_CONNECTION_TIMEOUT
public static int GATT_CONNECTION_TIMEOUT { get; }
Property Value
GATT_FAILURE
public static int GATT_FAILURE { get; }
Property Value
GATT_INSUFFICIENT_AUTHENTICATION
public static int GATT_INSUFFICIENT_AUTHENTICATION { get; }
Property Value
GATT_INSUFFICIENT_AUTHORIZATION
public static int GATT_INSUFFICIENT_AUTHORIZATION { get; }
Property Value
GATT_INSUFFICIENT_ENCRYPTION
public static int GATT_INSUFFICIENT_ENCRYPTION { get; }
Property Value
GATT_INVALID_ATTRIBUTE_LENGTH
public static int GATT_INVALID_ATTRIBUTE_LENGTH { get; }
Property Value
GATT_INVALID_OFFSET
public static int GATT_INVALID_OFFSET { get; }
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; }
Property Value
GATT_REQUEST_NOT_SUPPORTED
public static int GATT_REQUEST_NOT_SUPPORTED { get; }
Property Value
GATT_SUCCESS
public static int GATT_SUCCESS { get; }
Property Value
GATT_WRITE_NOT_PERMITTED
public static int GATT_WRITE_NOT_PERMITTED { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
AbortReliableWrite()
public void AbortReliableWrite()
AbortReliableWrite(BluetoothDevice)
[Obsolete]
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]
public List<BluetoothDevice> GetConnectedDevices()
Returns
GetConnectionState(BluetoothDevice)
[Obsolete]
public int GetConnectionState(BluetoothDevice arg0)
Parameters
Returns
GetDevice()
public BluetoothDevice GetDevice()
Returns
GetDevicesMatchingConnectionStates(int[])
[Obsolete]
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]
public bool WriteCharacteristic(BluetoothGattCharacteristic arg0)
Parameters
Returns
WriteCharacteristic(BluetoothGattCharacteristic, byte[], int)
public int WriteCharacteristic(BluetoothGattCharacteristic arg0, byte[] arg1, int arg2)
Parameters
arg0
BluetoothGattCharacteristicarg1
byte[]arg2
int
Returns
WriteDescriptor(BluetoothGattDescriptor)
[Obsolete]
public bool WriteDescriptor(BluetoothGattDescriptor arg0)
Parameters
Returns
WriteDescriptor(BluetoothGattDescriptor, byte[])
public int WriteDescriptor(BluetoothGattDescriptor arg0, byte[] arg1)
Parameters
arg0
BluetoothGattDescriptorarg1
byte[]