Table of Contents

Class BluetoothGatt

Namespace
Android.Bluetooth
Assembly
MASES.Netdroid.dll
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

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

CONNECTION_PRIORITY_BALANCED

public static int CONNECTION_PRIORITY_BALANCED { get; set; }

Property Value

int

CONNECTION_PRIORITY_DCK

public static int CONNECTION_PRIORITY_DCK { get; set; }

Property Value

int

CONNECTION_PRIORITY_HIGH

public static int CONNECTION_PRIORITY_HIGH { get; set; }

Property Value

int

CONNECTION_PRIORITY_LOW_POWER

public static int CONNECTION_PRIORITY_LOW_POWER { get; set; }

Property Value

int

GATT_CONNECTION_CONGESTED

public static int GATT_CONNECTION_CONGESTED { get; set; }

Property Value

int

GATT_CONNECTION_TIMEOUT

public static int GATT_CONNECTION_TIMEOUT { get; set; }

Property Value

int

GATT_FAILURE

public static int GATT_FAILURE { get; set; }

Property Value

int

GATT_INSUFFICIENT_AUTHENTICATION

public static int GATT_INSUFFICIENT_AUTHENTICATION { get; set; }

Property Value

int

GATT_INSUFFICIENT_AUTHORIZATION

public static int GATT_INSUFFICIENT_AUTHORIZATION { get; set; }

Property Value

int

GATT_INSUFFICIENT_ENCRYPTION

public static int GATT_INSUFFICIENT_ENCRYPTION { get; set; }

Property Value

int

GATT_INVALID_ATTRIBUTE_LENGTH

public static int GATT_INVALID_ATTRIBUTE_LENGTH { get; set; }

Property Value

int

GATT_INVALID_OFFSET

public static int GATT_INVALID_OFFSET { get; set; }

Property Value

int

GATT_READ_NOT_PERMITTED

public static int GATT_READ_NOT_PERMITTED { get; set; }

Property Value

int

GATT_REQUEST_NOT_SUPPORTED

public static int GATT_REQUEST_NOT_SUPPORTED { get; set; }

Property Value

int

GATT_SUCCESS

public static int GATT_SUCCESS { get; set; }

Property Value

int

GATT_WRITE_NOT_PERMITTED

public static int GATT_WRITE_NOT_PERMITTED { get; set; }

Property Value

int

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AbortReliableWrite()

public void AbortReliableWrite()

AbortReliableWrite(BluetoothDevice)

[Obsolete("Deprecated in JVM")]
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("Deprecated in JVM")]
public List<BluetoothDevice> GetConnectedDevices()

Returns

List<BluetoothDevice>

List

GetConnectionState(BluetoothDevice)

[Obsolete("Deprecated in JVM")]
public int GetConnectionState(BluetoothDevice arg0)

Parameters

arg0 BluetoothDevice

BluetoothDevice

Returns

int

int

GetDevice()

public BluetoothDevice GetDevice()

Returns

BluetoothDevice

BluetoothDevice

GetDevicesMatchingConnectionStates(int[])

[Obsolete("Deprecated in JVM")]
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("Deprecated in JVM")]
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("Deprecated in JVM")]
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