Table of Contents

Class BluetoothGattServer

Namespace
Android.Bluetooth
Assembly
MASES.Netdroid.dll
public class BluetoothGattServer : BluetoothProfile, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IBluetoothProfile
Inheritance
JVMBridgeBase
JVMBridgeBase<BluetoothProfile>
BluetoothGattServer
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

BluetoothGattServer()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public BluetoothGattServer()

BluetoothGattServer(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 BluetoothGattServer(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

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

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]
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