Table of Contents

Class BluetoothGattServer

Namespace
Android.Bluetooth
Assembly
MASES.Netdroid.dll
public class BluetoothGattServer : BluetoothProfile, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IBluetoothProfile
Inheritance
BluetoothGattServer
Implements
Inherited Members
Extension Methods

Constructors

BluetoothGattServer(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 BluetoothGattServer(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

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

AddService(BluetoothGattService)

public bool AddService(BluetoothGattService arg0)

Parameters

arg0 BluetoothGattService

BluetoothGattService

Returns

bool

bool

CancelConnection(BluetoothDevice)

public void CancelConnection(BluetoothDevice arg0)

Parameters

arg0 BluetoothDevice

BluetoothDevice

ClearServices()

public void ClearServices()

Close()

public void Close()

Connect(BluetoothDevice, bool)

public bool Connect(BluetoothDevice arg0, bool arg1)

Parameters

arg0 BluetoothDevice

BluetoothDevice

arg1 bool

bool

Returns

bool

bool

GetConnectedDevices()

public List<BluetoothDevice> GetConnectedDevices()

Returns

List<BluetoothDevice>

List

GetConnectionState(BluetoothDevice)

public int GetConnectionState(BluetoothDevice arg0)

Parameters

arg0 BluetoothDevice

BluetoothDevice

Returns

int

int

GetDevicesMatchingConnectionStates(int[])

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

NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, bool)

[Obsolete("Deprecated in JVM")]
public bool NotifyCharacteristicChanged(BluetoothDevice arg0, BluetoothGattCharacteristic arg1, bool arg2)

Parameters

arg0 BluetoothDevice

BluetoothDevice

arg1 BluetoothGattCharacteristic

BluetoothGattCharacteristic

arg2 bool

bool

Returns

bool

bool

NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, bool, byte[])

public int NotifyCharacteristicChanged(BluetoothDevice arg0, BluetoothGattCharacteristic arg1, bool arg2, byte[] arg3)

Parameters

arg0 BluetoothDevice

BluetoothDevice

arg1 BluetoothGattCharacteristic

BluetoothGattCharacteristic

arg2 bool

bool

arg3 byte[]

byte

Returns

int

int

ReadPhy(BluetoothDevice)

public void ReadPhy(BluetoothDevice arg0)

Parameters

arg0 BluetoothDevice

BluetoothDevice

RemoveService(BluetoothGattService)

public bool RemoveService(BluetoothGattService arg0)

Parameters

arg0 BluetoothGattService

BluetoothGattService

Returns

bool

bool

SendResponse(BluetoothDevice, int, int, int, byte[])

public bool SendResponse(BluetoothDevice arg0, int arg1, int arg2, int arg3, byte[] arg4)

Parameters

arg0 BluetoothDevice

BluetoothDevice

arg1 int

int

arg2 int

int

arg3 int

int

arg4 byte[]

byte

Returns

bool

bool

SetPreferredPhy(BluetoothDevice, int, int, int)

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

Parameters

arg0 BluetoothDevice

BluetoothDevice

arg1 int

int

arg2 int

int

arg3 int

int