Table of Contents

Class BluetoothAdapter

Namespace
Android.Bluetooth
Assembly
MASES.Netdroid.dll
public class BluetoothAdapter : JVMBridgeBase<BluetoothAdapter>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Inheritance
BluetoothAdapter
Implements
Extension Methods

Constructors

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

Parameters

initializer IJVMBridgeBaseInitializer

Properties

ACTION_CONNECTION_STATE_CHANGED

public static String ACTION_CONNECTION_STATE_CHANGED { get; set; }

Property Value

String

ACTION_DISCOVERY_FINISHED

public static String ACTION_DISCOVERY_FINISHED { get; set; }

Property Value

String

ACTION_DISCOVERY_STARTED

public static String ACTION_DISCOVERY_STARTED { get; set; }

Property Value

String

ACTION_LOCAL_NAME_CHANGED

public static String ACTION_LOCAL_NAME_CHANGED { get; set; }

Property Value

String

ACTION_REQUEST_DISCOVERABLE

public static String ACTION_REQUEST_DISCOVERABLE { get; set; }

Property Value

String

ACTION_REQUEST_ENABLE

public static String ACTION_REQUEST_ENABLE { get; set; }

Property Value

String

ACTION_SCAN_MODE_CHANGED

public static String ACTION_SCAN_MODE_CHANGED { get; set; }

Property Value

String

ACTION_STATE_CHANGED

public static String ACTION_STATE_CHANGED { get; set; }

Property Value

String

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

ERROR

public static int ERROR { get; set; }

Property Value

int

EXTRA_CONNECTION_STATE

public static String EXTRA_CONNECTION_STATE { get; set; }

Property Value

String

EXTRA_DISCOVERABLE_DURATION

public static String EXTRA_DISCOVERABLE_DURATION { get; set; }

Property Value

String

EXTRA_LOCAL_NAME

public static String EXTRA_LOCAL_NAME { get; set; }

Property Value

String

EXTRA_PREVIOUS_CONNECTION_STATE

public static String EXTRA_PREVIOUS_CONNECTION_STATE { get; set; }

Property Value

String

EXTRA_PREVIOUS_SCAN_MODE

public static String EXTRA_PREVIOUS_SCAN_MODE { get; set; }

Property Value

String

EXTRA_PREVIOUS_STATE

public static String EXTRA_PREVIOUS_STATE { get; set; }

Property Value

String

EXTRA_SCAN_MODE

public static String EXTRA_SCAN_MODE { get; set; }

Property Value

String

EXTRA_STATE

public static String EXTRA_STATE { get; set; }

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

SCAN_MODE_CONNECTABLE

public static int SCAN_MODE_CONNECTABLE { get; set; }

Property Value

int

SCAN_MODE_CONNECTABLE_DISCOVERABLE

public static int SCAN_MODE_CONNECTABLE_DISCOVERABLE { get; set; }

Property Value

int

SCAN_MODE_NONE

public static int SCAN_MODE_NONE { get; set; }

Property Value

int

STATE_CONNECTED

public static int STATE_CONNECTED { get; set; }

Property Value

int

STATE_CONNECTING

public static int STATE_CONNECTING { get; set; }

Property Value

int

STATE_DISCONNECTED

public static int STATE_DISCONNECTED { get; set; }

Property Value

int

STATE_DISCONNECTING

public static int STATE_DISCONNECTING { get; set; }

Property Value

int

STATE_OFF

public static int STATE_OFF { get; set; }

Property Value

int

STATE_ON

public static int STATE_ON { get; set; }

Property Value

int

STATE_TURNING_OFF

public static int STATE_TURNING_OFF { get; set; }

Property Value

int

STATE_TURNING_ON

public static int STATE_TURNING_ON { get; set; }

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("Deprecated in JVM")]
public bool Disable()

Returns

bool

bool

Enable()

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

ListenUsingSocketSettings(BluetoothSocketSettings)

public BluetoothServerSocket ListenUsingSocketSettings(BluetoothSocketSettings arg0)

Parameters

arg0 BluetoothSocketSettings

BluetoothSocketSettings

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("Deprecated in JVM")]
public bool StartLeScan(BluetoothAdapter.LeScanCallback arg0)

Parameters

arg0 BluetoothAdapter.LeScanCallback

BluetoothAdapter.LeScanCallback

Returns

bool

bool

StartLeScan(UUID[], LeScanCallback)

[Obsolete("Deprecated in JVM")]
public bool StartLeScan(UUID[] arg0, BluetoothAdapter.LeScanCallback arg1)

Parameters

arg0 UUID[]

UUID

arg1 BluetoothAdapter.LeScanCallback

BluetoothAdapter.LeScanCallback

Returns

bool

bool

StopLeScan(LeScanCallback)

[Obsolete("Deprecated in JVM")]
public void StopLeScan(BluetoothAdapter.LeScanCallback arg0)

Parameters

arg0 BluetoothAdapter.LeScanCallback

BluetoothAdapter.LeScanCallback