Class BluetoothGattServer
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
initializerIJVMBridgeBaseInitializer
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
AddService(BluetoothGattService)
public bool AddService(BluetoothGattService arg0)
Parameters
Returns
CancelConnection(BluetoothDevice)
public void CancelConnection(BluetoothDevice arg0)
Parameters
ClearServices()
public void ClearServices()
Close()
public void Close()
Connect(BluetoothDevice, bool)
public bool Connect(BluetoothDevice arg0, bool arg1)
Parameters
arg0BluetoothDevicearg1bool
Returns
GetConnectedDevices()
public List<BluetoothDevice> GetConnectedDevices()
Returns
GetConnectionState(BluetoothDevice)
public int GetConnectionState(BluetoothDevice arg0)
Parameters
Returns
GetDevicesMatchingConnectionStates(int[])
public List<BluetoothDevice> GetDevicesMatchingConnectionStates(int[] arg0)
Parameters
Returns
GetService(UUID)
public BluetoothGattService GetService(UUID arg0)
Parameters
Returns
GetServices()
public List<BluetoothGattService> GetServices()
Returns
NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, bool)
[Obsolete("Deprecated in JVM")]
public bool NotifyCharacteristicChanged(BluetoothDevice arg0, BluetoothGattCharacteristic arg1, bool arg2)
Parameters
arg0BluetoothDevicearg1BluetoothGattCharacteristicarg2bool
Returns
NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, bool, byte[])
public int NotifyCharacteristicChanged(BluetoothDevice arg0, BluetoothGattCharacteristic arg1, bool arg2, byte[] arg3)
Parameters
arg0BluetoothDevicearg1BluetoothGattCharacteristicarg2boolarg3byte[]
Returns
ReadPhy(BluetoothDevice)
public void ReadPhy(BluetoothDevice arg0)
Parameters
RemoveService(BluetoothGattService)
public bool RemoveService(BluetoothGattService arg0)
Parameters
Returns
SendResponse(BluetoothDevice, int, int, int, byte[])
public bool SendResponse(BluetoothDevice arg0, int arg1, int arg2, int arg3, byte[] arg4)
Parameters
arg0BluetoothDevicearg1intarg2intarg3intarg4byte[]
Returns
SetPreferredPhy(BluetoothDevice, int, int, int)
public void SetPreferredPhy(BluetoothDevice arg0, int arg1, int arg2, int arg3)
Parameters
arg0BluetoothDevicearg1intarg2intarg3int