Table of Contents

Class BluetoothGatt

Namespace
Android.Bluetooth
Assembly
MASES.Netdroid.dll
public class BluetoothGatt : BluetoothProfile, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IBluetoothProfile
Inheritance
JVMBridgeBase
JVMBridgeBase<BluetoothProfile>
BluetoothGatt
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<BluetoothProfile>.IsAssignableFrom(IJavaType)
JVMBridgeBase<BluetoothProfile>.IsAssignableFrom<T>()
JVMBridgeBase<BluetoothProfile>.Execute<T>(params T[])
JVMBridgeBase<BluetoothProfile>.DynBridgeClazz
JVMBridgeBase<BluetoothProfile>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

public override string BridgeClassName { get; }

Property Value

string

CONNECTION_PRIORITY_BALANCED

public static int CONNECTION_PRIORITY_BALANCED { get; }

Property Value

int

CONNECTION_PRIORITY_DCK

public static int CONNECTION_PRIORITY_DCK { get; }

Property Value

int

CONNECTION_PRIORITY_HIGH

public static int CONNECTION_PRIORITY_HIGH { get; }

Property Value

int

CONNECTION_PRIORITY_LOW_POWER

public static int CONNECTION_PRIORITY_LOW_POWER { get; }

Property Value

int

GATT_CONNECTION_CONGESTED

public static int GATT_CONNECTION_CONGESTED { get; }

Property Value

int

GATT_CONNECTION_TIMEOUT

public static int GATT_CONNECTION_TIMEOUT { get; }

Property Value

int

GATT_FAILURE

public static int GATT_FAILURE { get; }

Property Value

int

GATT_INSUFFICIENT_AUTHENTICATION

public static int GATT_INSUFFICIENT_AUTHENTICATION { get; }

Property Value

int

GATT_INSUFFICIENT_AUTHORIZATION

public static int GATT_INSUFFICIENT_AUTHORIZATION { get; }

Property Value

int

GATT_INSUFFICIENT_ENCRYPTION

public static int GATT_INSUFFICIENT_ENCRYPTION { get; }

Property Value

int

GATT_INVALID_ATTRIBUTE_LENGTH

public static int GATT_INVALID_ATTRIBUTE_LENGTH { get; }

Property Value

int

GATT_INVALID_OFFSET

public static int GATT_INVALID_OFFSET { get; }

Property Value

int

GATT_READ_NOT_PERMITTED

public static int GATT_READ_NOT_PERMITTED { get; }

Property Value

int

GATT_REQUEST_NOT_SUPPORTED

public static int GATT_REQUEST_NOT_SUPPORTED { get; }

Property Value

int

GATT_SUCCESS

public static int GATT_SUCCESS { get; }

Property Value

int

GATT_WRITE_NOT_PERMITTED

public static int GATT_WRITE_NOT_PERMITTED { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AbortReliableWrite()

public void AbortReliableWrite()

AbortReliableWrite(BluetoothDevice)

[Obsolete]
public void AbortReliableWrite(BluetoothDevice arg0)

Parameters

arg0 BluetoothDevice

BluetoothDevice

BeginReliableWrite()

public bool BeginReliableWrite()

Returns

bool

bool

Close()

public void Close()

Connect()

public bool Connect()

Returns

bool

bool

Disconnect()

public void Disconnect()

DiscoverServices()

public bool DiscoverServices()

Returns

bool

bool

ExecuteReliableWrite()

public bool ExecuteReliableWrite()

Returns

bool

bool

GetConnectedDevices()

[Obsolete]
public List<BluetoothDevice> GetConnectedDevices()

Returns

List<BluetoothDevice>

List

GetConnectionState(BluetoothDevice)

[Obsolete]
public int GetConnectionState(BluetoothDevice arg0)

Parameters

arg0 BluetoothDevice

BluetoothDevice

Returns

int

int

GetDevice()

public BluetoothDevice GetDevice()

Returns

BluetoothDevice

BluetoothDevice

GetDevicesMatchingConnectionStates(int[])

[Obsolete]
public List<BluetoothDevice> GetDevicesMatchingConnectionStates(int[] arg0)

Parameters

arg0 int[]

int

Returns

List<BluetoothDevice>

List

GetService(UUID)

public BluetoothGattService GetService(UUID arg0)

Parameters

arg0 UUID

UUID

Returns

BluetoothGattService

BluetoothGattService

GetServices()

public List<BluetoothGattService> GetServices()

Returns

List<BluetoothGattService>

List

ReadCharacteristic(BluetoothGattCharacteristic)

public bool ReadCharacteristic(BluetoothGattCharacteristic arg0)

Parameters

arg0 BluetoothGattCharacteristic

BluetoothGattCharacteristic

Returns

bool

bool

ReadDescriptor(BluetoothGattDescriptor)

public bool ReadDescriptor(BluetoothGattDescriptor arg0)

Parameters

arg0 BluetoothGattDescriptor

BluetoothGattDescriptor

Returns

bool

bool

ReadPhy()

public void ReadPhy()

ReadRemoteRssi()

public bool ReadRemoteRssi()

Returns

bool

bool

RequestConnectionPriority(int)

public bool RequestConnectionPriority(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

RequestMtu(int)

public bool RequestMtu(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

SetCharacteristicNotification(BluetoothGattCharacteristic, bool)

public bool SetCharacteristicNotification(BluetoothGattCharacteristic arg0, bool arg1)

Parameters

arg0 BluetoothGattCharacteristic

BluetoothGattCharacteristic

arg1 bool

bool

Returns

bool

bool

SetPreferredPhy(int, int, int)

public void SetPreferredPhy(int arg0, int arg1, int arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

WriteCharacteristic(BluetoothGattCharacteristic)

[Obsolete]
public bool WriteCharacteristic(BluetoothGattCharacteristic arg0)

Parameters

arg0 BluetoothGattCharacteristic

BluetoothGattCharacteristic

Returns

bool

bool

WriteCharacteristic(BluetoothGattCharacteristic, byte[], int)

public int WriteCharacteristic(BluetoothGattCharacteristic arg0, byte[] arg1, int arg2)

Parameters

arg0 BluetoothGattCharacteristic

BluetoothGattCharacteristic

arg1 byte[]

byte

arg2 int

int

Returns

int

int

WriteDescriptor(BluetoothGattDescriptor)

[Obsolete]
public bool WriteDescriptor(BluetoothGattDescriptor arg0)

Parameters

arg0 BluetoothGattDescriptor

BluetoothGattDescriptor

Returns

bool

bool

WriteDescriptor(BluetoothGattDescriptor, byte[])

public int WriteDescriptor(BluetoothGattDescriptor arg0, byte[] arg1)

Parameters

arg0 BluetoothGattDescriptor

BluetoothGattDescriptor

arg1 byte[]

byte

Returns

int

int