Table of Contents

Class BluetoothSocket

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

Constructors

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

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

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

TYPE_L2CAP

public static int TYPE_L2CAP { get; set; }

Property Value

int

TYPE_LE

public static int TYPE_LE { get; set; }

Property Value

int

TYPE_RFCOMM

public static int TYPE_RFCOMM { get; set; }

Property Value

int

TYPE_SCO

public static int TYPE_SCO { get; set; }

Property Value

int

Methods

Close()

public void Close()

Exceptions

IOException

Connect()

public void Connect()

Exceptions

IOException

GetConnectionType()

public int GetConnectionType()

Returns

int

int

GetInputStream()

public InputStream GetInputStream()

Returns

InputStream

InputStream

Exceptions

IOException

GetMaxReceivePacketSize()

public int GetMaxReceivePacketSize()

Returns

int

int

GetMaxTransmitPacketSize()

public int GetMaxTransmitPacketSize()

Returns

int

int

GetOutputStream()

public OutputStream GetOutputStream()

Returns

OutputStream

OutputStream

Exceptions

IOException

GetRemoteDevice()

public BluetoothDevice GetRemoteDevice()

Returns

BluetoothDevice

BluetoothDevice

IsConnected()

public bool IsConnected()

Returns

bool

bool