Table of Contents

Class BluetoothAdapter

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

BluetoothAdapter()

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

public BluetoothAdapter()

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

Parameters

args object[]

Properties

ACTION_CONNECTION_STATE_CHANGED

public static String ACTION_CONNECTION_STATE_CHANGED { get; }

Property Value

String

ACTION_DISCOVERY_FINISHED

public static String ACTION_DISCOVERY_FINISHED { get; }

Property Value

String

ACTION_DISCOVERY_STARTED

public static String ACTION_DISCOVERY_STARTED { get; }

Property Value

String

ACTION_LOCAL_NAME_CHANGED

public static String ACTION_LOCAL_NAME_CHANGED { get; }

Property Value

String

ACTION_REQUEST_DISCOVERABLE

public static String ACTION_REQUEST_DISCOVERABLE { get; }

Property Value

String

ACTION_REQUEST_ENABLE

public static String ACTION_REQUEST_ENABLE { get; }

Property Value

String

ACTION_SCAN_MODE_CHANGED

public static String ACTION_SCAN_MODE_CHANGED { get; }

Property Value

String

ACTION_STATE_CHANGED

public static String ACTION_STATE_CHANGED { get; }

Property Value

String

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

ERROR

public static int ERROR { get; }

Property Value

int

EXTRA_CONNECTION_STATE

public static String EXTRA_CONNECTION_STATE { get; }

Property Value

String

EXTRA_DISCOVERABLE_DURATION

public static String EXTRA_DISCOVERABLE_DURATION { get; }

Property Value

String

EXTRA_LOCAL_NAME

public static String EXTRA_LOCAL_NAME { get; }

Property Value

String

EXTRA_PREVIOUS_CONNECTION_STATE

public static String EXTRA_PREVIOUS_CONNECTION_STATE { get; }

Property Value

String

EXTRA_PREVIOUS_SCAN_MODE

public static String EXTRA_PREVIOUS_SCAN_MODE { get; }

Property Value

String

EXTRA_PREVIOUS_STATE

public static String EXTRA_PREVIOUS_STATE { get; }

Property Value

String

EXTRA_SCAN_MODE

public static String EXTRA_SCAN_MODE { get; }

Property Value

String

EXTRA_STATE

public static String EXTRA_STATE { 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

SCAN_MODE_CONNECTABLE

public static int SCAN_MODE_CONNECTABLE { get; }

Property Value

int

SCAN_MODE_CONNECTABLE_DISCOVERABLE

public static int SCAN_MODE_CONNECTABLE_DISCOVERABLE { get; }

Property Value

int

SCAN_MODE_NONE

public static int SCAN_MODE_NONE { get; }

Property Value

int

STATE_CONNECTED

public static int STATE_CONNECTED { get; }

Property Value

int

STATE_CONNECTING

public static int STATE_CONNECTING { get; }

Property Value

int

STATE_DISCONNECTED

public static int STATE_DISCONNECTED { get; }

Property Value

int

STATE_DISCONNECTING

public static int STATE_DISCONNECTING { get; }

Property Value

int

STATE_OFF

public static int STATE_OFF { get; }

Property Value

int

STATE_ON

public static int STATE_ON { get; }

Property Value

int

STATE_TURNING_OFF

public static int STATE_TURNING_OFF { get; }

Property Value

int

STATE_TURNING_ON

public static int STATE_TURNING_ON { get; }

Property Value

int

Methods

CancelDiscovery()

public bool CancelDiscovery()

Returns

bool

bool

CheckBluetoothAddress(String)

public static bool CheckBluetoothAddress(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

CloseProfileProxy(int, BluetoothProfile)

public void CloseProfileProxy(int arg0, BluetoothProfile arg1)

Parameters

arg0 int

int

arg1 BluetoothProfile

BluetoothProfile

Disable()

[Obsolete]
public bool Disable()

Returns

bool

bool

Enable()

[Obsolete]
public bool Enable()

Returns

bool

bool

GetAddress()

public String GetAddress()

Returns

String

String

GetBluetoothLeAdvertiser()

public BluetoothLeAdvertiser GetBluetoothLeAdvertiser()

Returns

BluetoothLeAdvertiser

BluetoothLeAdvertiser

GetBluetoothLeScanner()

public BluetoothLeScanner GetBluetoothLeScanner()

Returns

BluetoothLeScanner

BluetoothLeScanner

GetBondedDevices()

public Set<BluetoothDevice> GetBondedDevices()

Returns

Set<BluetoothDevice>

Set

GetDefaultAdapter()

[Obsolete]
public static BluetoothAdapter GetDefaultAdapter()

Returns

BluetoothAdapter

BluetoothAdapter

GetDiscoverableTimeout()

public Duration GetDiscoverableTimeout()

Returns

Duration

Duration

GetLeMaximumAdvertisingDataLength()

public int GetLeMaximumAdvertisingDataLength()

Returns

int

int

GetMaxConnectedAudioDevices()

public int GetMaxConnectedAudioDevices()

Returns

int

int

GetName()

public String GetName()

Returns

String

String

GetProfileConnectionState(int)

public int GetProfileConnectionState(int arg0)

Parameters

arg0 int

int

Returns

int

int

GetProfileProxy(Context, ServiceListener, int)

public bool GetProfileProxy(Context arg0, BluetoothProfile.ServiceListener arg1, int arg2)

Parameters

arg0 Context

Context

arg1 BluetoothProfile.ServiceListener

BluetoothProfile.ServiceListener

arg2 int

int

Returns

bool

bool

GetRemoteDevice(String)

public BluetoothDevice GetRemoteDevice(String arg0)

Parameters

arg0 String

String

Returns

BluetoothDevice

BluetoothDevice

GetRemoteDevice(byte[])

public BluetoothDevice GetRemoteDevice(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

BluetoothDevice

BluetoothDevice

GetRemoteLeDevice(String, int)

public BluetoothDevice GetRemoteLeDevice(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

BluetoothDevice

BluetoothDevice

GetScanMode()

public int GetScanMode()

Returns

int

int

GetState()

public int GetState()

Returns

int

int

IsDiscovering()

public bool IsDiscovering()

Returns

bool

bool

IsEnabled()

public bool IsEnabled()

Returns

bool

bool

IsLe2MPhySupported()

public bool IsLe2MPhySupported()

Returns

bool

bool

IsLeAudioBroadcastAssistantSupported()

public int IsLeAudioBroadcastAssistantSupported()

Returns

int

int

IsLeAudioBroadcastSourceSupported()

public int IsLeAudioBroadcastSourceSupported()

Returns

int

int

IsLeAudioSupported()

public int IsLeAudioSupported()

Returns

int

int

IsLeCodedPhySupported()

public bool IsLeCodedPhySupported()

Returns

bool

bool

IsLeExtendedAdvertisingSupported()

public bool IsLeExtendedAdvertisingSupported()

Returns

bool

bool

IsLePeriodicAdvertisingSupported()

public bool IsLePeriodicAdvertisingSupported()

Returns

bool

bool

IsMultipleAdvertisementSupported()

public bool IsMultipleAdvertisementSupported()

Returns

bool

bool

IsOffloadedFilteringSupported()

public bool IsOffloadedFilteringSupported()

Returns

bool

bool

IsOffloadedScanBatchingSupported()

public bool IsOffloadedScanBatchingSupported()

Returns

bool

bool

ListenUsingInsecureL2capChannel()

public BluetoothServerSocket ListenUsingInsecureL2capChannel()

Returns

BluetoothServerSocket

BluetoothServerSocket

Exceptions

IOException

ListenUsingInsecureRfcommWithServiceRecord(String, UUID)

public BluetoothServerSocket ListenUsingInsecureRfcommWithServiceRecord(String arg0, UUID arg1)

Parameters

arg0 String

String

arg1 UUID

UUID

Returns

BluetoothServerSocket

BluetoothServerSocket

Exceptions

IOException

ListenUsingL2capChannel()

public BluetoothServerSocket ListenUsingL2capChannel()

Returns

BluetoothServerSocket

BluetoothServerSocket

Exceptions

IOException

ListenUsingRfcommWithServiceRecord(String, UUID)

public BluetoothServerSocket ListenUsingRfcommWithServiceRecord(String arg0, UUID arg1)

Parameters

arg0 String

String

arg1 UUID

UUID

Returns

BluetoothServerSocket

BluetoothServerSocket

Exceptions

IOException

SetName(String)

public bool SetName(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

StartDiscovery()

public bool StartDiscovery()

Returns

bool

bool

StartLeScan(LeScanCallback)

[Obsolete]
public bool StartLeScan(BluetoothAdapter.LeScanCallback arg0)

Parameters

arg0 BluetoothAdapter.LeScanCallback

BluetoothAdapter.LeScanCallback

Returns

bool

bool

StartLeScan(UUID[], LeScanCallback)

[Obsolete]
public bool StartLeScan(UUID[] arg0, BluetoothAdapter.LeScanCallback arg1)

Parameters

arg0 UUID[]

UUID

arg1 BluetoothAdapter.LeScanCallback

BluetoothAdapter.LeScanCallback

Returns

bool

bool

StopLeScan(LeScanCallback)

[Obsolete]
public void StopLeScan(BluetoothAdapter.LeScanCallback arg0)

Parameters

arg0 BluetoothAdapter.LeScanCallback

BluetoothAdapter.LeScanCallback