Class BluetoothAdapter
public class BluetoothAdapter : JVMBridgeBase<BluetoothAdapter>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<BluetoothAdapter>BluetoothAdapter
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<BluetoothAdapter>.IsAssignableFrom(IJavaType)JVMBridgeBase<BluetoothAdapter>.IsAssignableFrom<T>()JVMBridgeBase<BluetoothAdapter>.Execute<T>(params T[])JVMBridgeBase<BluetoothAdapter>.DynBridgeClazzJVMBridgeBase<BluetoothAdapter>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
ACTION_DISCOVERY_FINISHED
public static String ACTION_DISCOVERY_FINISHED { get; }
Property Value
ACTION_DISCOVERY_STARTED
public static String ACTION_DISCOVERY_STARTED { get; }
Property Value
ACTION_LOCAL_NAME_CHANGED
public static String ACTION_LOCAL_NAME_CHANGED { get; }
Property Value
ACTION_REQUEST_DISCOVERABLE
public static String ACTION_REQUEST_DISCOVERABLE { get; }
Property Value
ACTION_REQUEST_ENABLE
public static String ACTION_REQUEST_ENABLE { get; }
Property Value
ACTION_SCAN_MODE_CHANGED
public static String ACTION_SCAN_MODE_CHANGED { get; }
Property Value
ACTION_STATE_CHANGED
https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#ACTION_STATE_CHANGED
public static String ACTION_STATE_CHANGED { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
ERROR
public static int ERROR { get; }
Property Value
EXTRA_CONNECTION_STATE
public static String EXTRA_CONNECTION_STATE { get; }
Property Value
EXTRA_DISCOVERABLE_DURATION
public static String EXTRA_DISCOVERABLE_DURATION { get; }
Property Value
EXTRA_LOCAL_NAME
public static String EXTRA_LOCAL_NAME { get; }
Property Value
EXTRA_PREVIOUS_CONNECTION_STATE
public static String EXTRA_PREVIOUS_CONNECTION_STATE { get; }
Property Value
EXTRA_PREVIOUS_SCAN_MODE
public static String EXTRA_PREVIOUS_SCAN_MODE { get; }
Property Value
EXTRA_PREVIOUS_STATE
https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#EXTRA_PREVIOUS_STATE
public static String EXTRA_PREVIOUS_STATE { get; }
Property Value
EXTRA_SCAN_MODE
public static String EXTRA_SCAN_MODE { get; }
Property Value
EXTRA_STATE
public static String EXTRA_STATE { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
SCAN_MODE_CONNECTABLE
public static int SCAN_MODE_CONNECTABLE { get; }
Property Value
SCAN_MODE_CONNECTABLE_DISCOVERABLE
public static int SCAN_MODE_CONNECTABLE_DISCOVERABLE { get; }
Property Value
SCAN_MODE_NONE
public static int SCAN_MODE_NONE { get; }
Property Value
STATE_CONNECTED
public static int STATE_CONNECTED { get; }
Property Value
STATE_CONNECTING
public static int STATE_CONNECTING { get; }
Property Value
STATE_DISCONNECTED
public static int STATE_DISCONNECTED { get; }
Property Value
STATE_DISCONNECTING
public static int STATE_DISCONNECTING { get; }
Property Value
STATE_OFF
public static int STATE_OFF { get; }
Property Value
STATE_ON
public static int STATE_ON { get; }
Property Value
STATE_TURNING_OFF
public static int STATE_TURNING_OFF { get; }
Property Value
STATE_TURNING_ON
public static int STATE_TURNING_ON { get; }
Property Value
Methods
CancelDiscovery()
public bool CancelDiscovery()
Returns
CheckBluetoothAddress(String)
public static bool CheckBluetoothAddress(String arg0)
Parameters
Returns
CloseProfileProxy(int, BluetoothProfile)
public void CloseProfileProxy(int arg0, BluetoothProfile arg1)
Parameters
arg0
intarg1
BluetoothProfile
Disable()
[Obsolete]
public bool Disable()
Returns
Enable()
[Obsolete]
public bool Enable()
Returns
GetAddress()
public String GetAddress()
Returns
GetBluetoothLeAdvertiser()
public BluetoothLeAdvertiser GetBluetoothLeAdvertiser()
Returns
GetBluetoothLeScanner()
public BluetoothLeScanner GetBluetoothLeScanner()
Returns
GetBondedDevices()
public Set<BluetoothDevice> GetBondedDevices()
Returns
GetDefaultAdapter()
[Obsolete]
public static BluetoothAdapter GetDefaultAdapter()
Returns
GetDiscoverableTimeout()
public Duration GetDiscoverableTimeout()
Returns
GetLeMaximumAdvertisingDataLength()
public int GetLeMaximumAdvertisingDataLength()
Returns
GetMaxConnectedAudioDevices()
public int GetMaxConnectedAudioDevices()
Returns
GetName()
public String GetName()
Returns
GetProfileConnectionState(int)
public int GetProfileConnectionState(int arg0)
Parameters
Returns
GetProfileProxy(Context, ServiceListener, int)
public bool GetProfileProxy(Context arg0, BluetoothProfile.ServiceListener arg1, int arg2)
Parameters
arg0
Contextarg1
BluetoothProfile.ServiceListenerarg2
int
Returns
GetRemoteDevice(String)
public BluetoothDevice GetRemoteDevice(String arg0)
Parameters
Returns
GetRemoteDevice(byte[])
public BluetoothDevice GetRemoteDevice(byte[] arg0)
Parameters
Returns
GetRemoteLeDevice(String, int)
public BluetoothDevice GetRemoteLeDevice(String arg0, int arg1)
Parameters
Returns
GetScanMode()
public int GetScanMode()
Returns
GetState()
public int GetState()
Returns
IsDiscovering()
public bool IsDiscovering()
Returns
IsEnabled()
public bool IsEnabled()
Returns
IsLe2MPhySupported()
https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#isLe2MPhySupported()
public bool IsLe2MPhySupported()
Returns
IsLeAudioBroadcastAssistantSupported()
public int IsLeAudioBroadcastAssistantSupported()
Returns
IsLeAudioBroadcastSourceSupported()
public int IsLeAudioBroadcastSourceSupported()
Returns
IsLeAudioSupported()
https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#isLeAudioSupported()
public int IsLeAudioSupported()
Returns
IsLeCodedPhySupported()
public bool IsLeCodedPhySupported()
Returns
IsLeExtendedAdvertisingSupported()
public bool IsLeExtendedAdvertisingSupported()
Returns
IsLePeriodicAdvertisingSupported()
public bool IsLePeriodicAdvertisingSupported()
Returns
IsMultipleAdvertisementSupported()
public bool IsMultipleAdvertisementSupported()
Returns
IsOffloadedFilteringSupported()
public bool IsOffloadedFilteringSupported()
Returns
IsOffloadedScanBatchingSupported()
public bool IsOffloadedScanBatchingSupported()
Returns
ListenUsingInsecureL2capChannel()
public BluetoothServerSocket ListenUsingInsecureL2capChannel()
Returns
Exceptions
ListenUsingInsecureRfcommWithServiceRecord(String, UUID)
public BluetoothServerSocket ListenUsingInsecureRfcommWithServiceRecord(String arg0, UUID arg1)
Parameters
Returns
Exceptions
ListenUsingL2capChannel()
public BluetoothServerSocket ListenUsingL2capChannel()
Returns
Exceptions
ListenUsingRfcommWithServiceRecord(String, UUID)
public BluetoothServerSocket ListenUsingRfcommWithServiceRecord(String arg0, UUID arg1)
Parameters
Returns
Exceptions
SetName(String)
public bool SetName(String arg0)
Parameters
Returns
StartDiscovery()
public bool StartDiscovery()
Returns
StartLeScan(LeScanCallback)
[Obsolete]
public bool StartLeScan(BluetoothAdapter.LeScanCallback arg0)
Parameters
Returns
StartLeScan(UUID[], LeScanCallback)
[Obsolete]
public bool StartLeScan(UUID[] arg0, BluetoothAdapter.LeScanCallback arg1)
Parameters
Returns
StopLeScan(LeScanCallback)
[Obsolete]
public void StopLeScan(BluetoothAdapter.LeScanCallback arg0)