Table of Contents

Class BluetoothDevice

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

BluetoothDevice()

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

public BluetoothDevice()

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

Parameters

args object[]

Properties

ACTION_ACL_CONNECTED

public static String ACTION_ACL_CONNECTED { get; }

Property Value

String

ACTION_ACL_DISCONNECTED

public static String ACTION_ACL_DISCONNECTED { get; }

Property Value

String

ACTION_ACL_DISCONNECT_REQUESTED

public static String ACTION_ACL_DISCONNECT_REQUESTED { get; }

Property Value

String

ACTION_ALIAS_CHANGED

public static String ACTION_ALIAS_CHANGED { get; }

Property Value

String

ACTION_BOND_STATE_CHANGED

public static String ACTION_BOND_STATE_CHANGED { get; }

Property Value

String

ACTION_CLASS_CHANGED

public static String ACTION_CLASS_CHANGED { get; }

Property Value

String

ACTION_FOUND

public static String ACTION_FOUND { get; }

Property Value

String

ACTION_NAME_CHANGED

public static String ACTION_NAME_CHANGED { get; }

Property Value

String

ACTION_PAIRING_REQUEST

public static String ACTION_PAIRING_REQUEST { get; }

Property Value

String

ACTION_UUID

public static String ACTION_UUID { get; }

Property Value

String

ADDRESS_TYPE_ANONYMOUS

public static int ADDRESS_TYPE_ANONYMOUS { get; }

Property Value

int

ADDRESS_TYPE_PUBLIC

public static int ADDRESS_TYPE_PUBLIC { get; }

Property Value

int

ADDRESS_TYPE_RANDOM

public static int ADDRESS_TYPE_RANDOM { get; }

Property Value

int

ADDRESS_TYPE_UNKNOWN

public static int ADDRESS_TYPE_UNKNOWN { get; }

Property Value

int

BOND_BONDED

public static int BOND_BONDED { get; }

Property Value

int

BOND_BONDING

public static int BOND_BONDING { get; }

Property Value

int

BOND_NONE

public static int BOND_NONE { get; }

Property Value

int

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CREATOR

public static Parcelable.Creator CREATOR { get; }

Property Value

Parcelable.Creator

DEVICE_TYPE_CLASSIC

public static int DEVICE_TYPE_CLASSIC { get; }

Property Value

int

DEVICE_TYPE_DUAL

public static int DEVICE_TYPE_DUAL { get; }

Property Value

int

DEVICE_TYPE_LE

public static int DEVICE_TYPE_LE { get; }

Property Value

int

DEVICE_TYPE_UNKNOWN

public static int DEVICE_TYPE_UNKNOWN { get; }

Property Value

int

ERROR

public static int ERROR { get; }

Property Value

int

EXTRA_BOND_STATE

public static String EXTRA_BOND_STATE { get; }

Property Value

String

EXTRA_CLASS

public static String EXTRA_CLASS { get; }

Property Value

String

EXTRA_DEVICE

public static String EXTRA_DEVICE { get; }

Property Value

String

EXTRA_IS_COORDINATED_SET_MEMBER

public static String EXTRA_IS_COORDINATED_SET_MEMBER { get; }

Property Value

String

EXTRA_NAME

public static String EXTRA_NAME { get; }

Property Value

String

EXTRA_PAIRING_KEY

public static String EXTRA_PAIRING_KEY { get; }

Property Value

String

EXTRA_PAIRING_VARIANT

public static String EXTRA_PAIRING_VARIANT { get; }

Property Value

String

EXTRA_PREVIOUS_BOND_STATE

public static String EXTRA_PREVIOUS_BOND_STATE { get; }

Property Value

String

EXTRA_RSSI

public static String EXTRA_RSSI { get; }

Property Value

String

EXTRA_TRANSPORT

public static String EXTRA_TRANSPORT { get; }

Property Value

String

EXTRA_UUID

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

PAIRING_VARIANT_PASSKEY_CONFIRMATION

public static int PAIRING_VARIANT_PASSKEY_CONFIRMATION { get; }

Property Value

int

PAIRING_VARIANT_PIN

public static int PAIRING_VARIANT_PIN { get; }

Property Value

int

PHY_LE_1M

public static int PHY_LE_1M { get; }

Property Value

int

PHY_LE_1M_MASK

public static int PHY_LE_1M_MASK { get; }

Property Value

int

PHY_LE_2M

public static int PHY_LE_2M { get; }

Property Value

int

PHY_LE_2M_MASK

public static int PHY_LE_2M_MASK { get; }

Property Value

int

PHY_LE_CODED

public static int PHY_LE_CODED { get; }

Property Value

int

PHY_LE_CODED_MASK

public static int PHY_LE_CODED_MASK { get; }

Property Value

int

PHY_OPTION_NO_PREFERRED

public static int PHY_OPTION_NO_PREFERRED { get; }

Property Value

int

PHY_OPTION_S2

public static int PHY_OPTION_S2 { get; }

Property Value

int

PHY_OPTION_S8

public static int PHY_OPTION_S8 { get; }

Property Value

int

TRANSPORT_AUTO

public static int TRANSPORT_AUTO { get; }

Property Value

int

TRANSPORT_BREDR

public static int TRANSPORT_BREDR { get; }

Property Value

int

TRANSPORT_LE

public static int TRANSPORT_LE { get; }

Property Value

int

Methods

ConnectGatt(Context, bool, BluetoothGattCallback)

public BluetoothGatt ConnectGatt(Context arg0, bool arg1, BluetoothGattCallback arg2)

Parameters

arg0 Context

Context

arg1 bool

bool

arg2 BluetoothGattCallback

BluetoothGattCallback

Returns

BluetoothGatt

BluetoothGatt

ConnectGatt(Context, bool, BluetoothGattCallback, int)

public BluetoothGatt ConnectGatt(Context arg0, bool arg1, BluetoothGattCallback arg2, int arg3)

Parameters

arg0 Context

Context

arg1 bool

bool

arg2 BluetoothGattCallback

BluetoothGattCallback

arg3 int

int

Returns

BluetoothGatt

BluetoothGatt

ConnectGatt(Context, bool, BluetoothGattCallback, int, int)

public BluetoothGatt ConnectGatt(Context arg0, bool arg1, BluetoothGattCallback arg2, int arg3, int arg4)

Parameters

arg0 Context

Context

arg1 bool

bool

arg2 BluetoothGattCallback

BluetoothGattCallback

arg3 int

int

arg4 int

int

Returns

BluetoothGatt

BluetoothGatt

ConnectGatt(Context, bool, BluetoothGattCallback, int, int, Handler)

public BluetoothGatt ConnectGatt(Context arg0, bool arg1, BluetoothGattCallback arg2, int arg3, int arg4, Handler arg5)

Parameters

arg0 Context

Context

arg1 bool

bool

arg2 BluetoothGattCallback

BluetoothGattCallback

arg3 int

int

arg4 int

int

arg5 Handler

Handler

Returns

BluetoothGatt

BluetoothGatt

CreateBond()

public bool CreateBond()

Returns

bool

bool

CreateInsecureL2capChannel(int)

public BluetoothSocket CreateInsecureL2capChannel(int arg0)

Parameters

arg0 int

int

Returns

BluetoothSocket

BluetoothSocket

Exceptions

IOException

CreateInsecureRfcommSocketToServiceRecord(UUID)

public BluetoothSocket CreateInsecureRfcommSocketToServiceRecord(UUID arg0)

Parameters

arg0 UUID

UUID

Returns

BluetoothSocket

BluetoothSocket

Exceptions

IOException

CreateL2capChannel(int)

public BluetoothSocket CreateL2capChannel(int arg0)

Parameters

arg0 int

int

Returns

BluetoothSocket

BluetoothSocket

Exceptions

IOException

CreateRfcommSocketToServiceRecord(UUID)

public BluetoothSocket CreateRfcommSocketToServiceRecord(UUID arg0)

Parameters

arg0 UUID

UUID

Returns

BluetoothSocket

BluetoothSocket

Exceptions

IOException

DescribeContents()

public int DescribeContents()

Returns

int

int

FetchUuidsWithSdp()

public bool FetchUuidsWithSdp()

Returns

bool

bool

GetAddress()

public String GetAddress()

Returns

String

String

GetAddressType()

public int GetAddressType()

Returns

int

int

GetAlias()

public String GetAlias()

Returns

String

String

GetBluetoothClass()

public BluetoothClass GetBluetoothClass()

Returns

BluetoothClass

BluetoothClass

GetBondState()

public int GetBondState()

Returns

int

int

GetName()

public String GetName()

Returns

String

String

GetType()

public int GetType()

Returns

int

int

GetUuids()

public ParcelUuid[] GetUuids()

Returns

ParcelUuid[]

ParcelUuid

SetAlias(String)

public int SetAlias(String arg0)

Parameters

arg0 String

String

Returns

int

int

SetPairingConfirmation(bool)

public bool SetPairingConfirmation(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

SetPin(byte[])

public bool SetPin(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

bool

bool

WriteToParcel(Parcel, int)

public void WriteToParcel(Parcel arg0, int arg1)

Parameters

arg0 Parcel

Parcel

arg1 int

int