Table of Contents

Class BluetoothDevice

Namespace
Android.Bluetooth
Assembly
MASES.Netdroid.dll
public class BluetoothDevice : Parcelable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IParcelable
Inheritance
BluetoothDevice
Implements
Inherited Members
Extension Methods

Constructors

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

Parameters

initializer IJVMBridgeBaseInitializer

Properties

ACTION_ACL_CONNECTED

public static String ACTION_ACL_CONNECTED { get; set; }

Property Value

String

ACTION_ACL_DISCONNECTED

public static String ACTION_ACL_DISCONNECTED { get; set; }

Property Value

String

ACTION_ACL_DISCONNECT_REQUESTED

public static String ACTION_ACL_DISCONNECT_REQUESTED { get; set; }

Property Value

String

ACTION_ALIAS_CHANGED

public static String ACTION_ALIAS_CHANGED { get; set; }

Property Value

String

ACTION_BOND_STATE_CHANGED

public static String ACTION_BOND_STATE_CHANGED { get; set; }

Property Value

String

ACTION_CLASS_CHANGED

public static String ACTION_CLASS_CHANGED { get; set; }

Property Value

String

ACTION_ENCRYPTION_CHANGE

public static String ACTION_ENCRYPTION_CHANGE { get; set; }

Property Value

String

ACTION_FOUND

public static String ACTION_FOUND { get; set; }

Property Value

String

ACTION_KEY_MISSING

public static String ACTION_KEY_MISSING { get; set; }

Property Value

String

ACTION_NAME_CHANGED

public static String ACTION_NAME_CHANGED { get; set; }

Property Value

String

ACTION_PAIRING_REQUEST

public static String ACTION_PAIRING_REQUEST { get; set; }

Property Value

String

ACTION_UUID

public static String ACTION_UUID { get; set; }

Property Value

String

ADDRESS_TYPE_ANONYMOUS

public static int ADDRESS_TYPE_ANONYMOUS { get; set; }

Property Value

int

ADDRESS_TYPE_PUBLIC

public static int ADDRESS_TYPE_PUBLIC { get; set; }

Property Value

int

ADDRESS_TYPE_RANDOM

public static int ADDRESS_TYPE_RANDOM { get; set; }

Property Value

int

ADDRESS_TYPE_UNKNOWN

public static int ADDRESS_TYPE_UNKNOWN { get; set; }

Property Value

int

BOND_BONDED

public static int BOND_BONDED { get; set; }

Property Value

int

BOND_BONDING

public static int BOND_BONDING { get; set; }

Property Value

int

BOND_NONE

public static int BOND_NONE { get; set; }

Property Value

int

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

CREATOR

public static Parcelable.Creator CREATOR { get; set; }

Property Value

Parcelable.Creator

DEVICE_TYPE_CLASSIC

public static int DEVICE_TYPE_CLASSIC { get; set; }

Property Value

int

DEVICE_TYPE_DUAL

public static int DEVICE_TYPE_DUAL { get; set; }

Property Value

int

DEVICE_TYPE_LE

public static int DEVICE_TYPE_LE { get; set; }

Property Value

int

DEVICE_TYPE_UNKNOWN

public static int DEVICE_TYPE_UNKNOWN { get; set; }

Property Value

int

ENCRYPTION_ALGORITHM_AES

public static int ENCRYPTION_ALGORITHM_AES { get; set; }

Property Value

int

ENCRYPTION_ALGORITHM_E0

public static int ENCRYPTION_ALGORITHM_E0 { get; set; }

Property Value

int

ENCRYPTION_ALGORITHM_NONE

public static int ENCRYPTION_ALGORITHM_NONE { get; set; }

Property Value

int

ERROR

public static int ERROR { get; set; }

Property Value

int

EXTRA_BOND_STATE

public static String EXTRA_BOND_STATE { get; set; }

Property Value

String

EXTRA_CLASS

public static String EXTRA_CLASS { get; set; }

Property Value

String

EXTRA_DEVICE

public static String EXTRA_DEVICE { get; set; }

Property Value

String

EXTRA_ENCRYPTION_ALGORITHM

public static String EXTRA_ENCRYPTION_ALGORITHM { get; set; }

Property Value

String

EXTRA_ENCRYPTION_ENABLED

public static String EXTRA_ENCRYPTION_ENABLED { get; set; }

Property Value

String

EXTRA_ENCRYPTION_STATUS

public static String EXTRA_ENCRYPTION_STATUS { get; set; }

Property Value

String

EXTRA_IS_COORDINATED_SET_MEMBER

public static String EXTRA_IS_COORDINATED_SET_MEMBER { get; set; }

Property Value

String

EXTRA_KEY_SIZE

public static String EXTRA_KEY_SIZE { get; set; }

Property Value

String

EXTRA_NAME

public static String EXTRA_NAME { get; set; }

Property Value

String

EXTRA_PAIRING_KEY

public static String EXTRA_PAIRING_KEY { get; set; }

Property Value

String

EXTRA_PAIRING_VARIANT

public static String EXTRA_PAIRING_VARIANT { get; set; }

Property Value

String

EXTRA_PREVIOUS_BOND_STATE

public static String EXTRA_PREVIOUS_BOND_STATE { get; set; }

Property Value

String

EXTRA_RSSI

public static String EXTRA_RSSI { get; set; }

Property Value

String

EXTRA_TRANSPORT

public static String EXTRA_TRANSPORT { get; set; }

Property Value

String

EXTRA_UUID

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

PAIRING_VARIANT_PASSKEY_CONFIRMATION

public static int PAIRING_VARIANT_PASSKEY_CONFIRMATION { get; set; }

Property Value

int

PAIRING_VARIANT_PIN

public static int PAIRING_VARIANT_PIN { get; set; }

Property Value

int

PHY_LE_1M

public static int PHY_LE_1M { get; set; }

Property Value

int

PHY_LE_1M_MASK

public static int PHY_LE_1M_MASK { get; set; }

Property Value

int

PHY_LE_2M

public static int PHY_LE_2M { get; set; }

Property Value

int

PHY_LE_2M_MASK

public static int PHY_LE_2M_MASK { get; set; }

Property Value

int

PHY_LE_CODED

public static int PHY_LE_CODED { get; set; }

Property Value

int

PHY_LE_CODED_MASK

public static int PHY_LE_CODED_MASK { get; set; }

Property Value

int

PHY_OPTION_NO_PREFERRED

public static int PHY_OPTION_NO_PREFERRED { get; set; }

Property Value

int

PHY_OPTION_S2

public static int PHY_OPTION_S2 { get; set; }

Property Value

int

PHY_OPTION_S8

public static int PHY_OPTION_S8 { get; set; }

Property Value

int

TRANSPORT_AUTO

public static int TRANSPORT_AUTO { get; set; }

Property Value

int

TRANSPORT_BREDR

public static int TRANSPORT_BREDR { get; set; }

Property Value

int

TRANSPORT_LE

public static int TRANSPORT_LE { get; set; }

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

CreateUsingSocketSettings(BluetoothSocketSettings)

public BluetoothSocket CreateUsingSocketSettings(BluetoothSocketSettings arg0)

Parameters

arg0 BluetoothSocketSettings

BluetoothSocketSettings

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

GetIdentityAddressWithType()

public BluetoothDevice.BluetoothAddress GetIdentityAddressWithType()

Returns

BluetoothDevice.BluetoothAddress

BluetoothDevice.BluetoothAddress

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