public class BluetoothReflection
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
accept(java.lang.Object bluetoothServerSocket)
Invokes the method
BluetoothServerSocket.accept(). |
static boolean |
checkBluetoothAddress(java.lang.Object bluetoothAdapter,
java.lang.String address)
Invokes the method
BluetoothAdapter.checkBluetoothAddress(String). |
static void |
closeBluetoothServerSocket(java.lang.Object bluetoothServerSocket)
Invokes the method
BluetoothServerSocket.close(). |
static void |
closeBluetoothSocket(java.lang.Object bluetoothSocket)
Invokes the method
BluetoothSocket.close(). |
static void |
connectToBluetoothSocket(java.lang.Object bluetoothSocket)
Invokes the method
BluetoothSocket.connect(). |
static java.lang.Object |
createInsecureRfcommSocketToServiceRecord(java.lang.Object bluetoothDevice,
java.util.UUID uuid)
Invokes the method
android.bluetooth.BluetoothDevice#createInsecureRfcommSocketToServiceRecord(Object, UUID). |
static java.lang.Object |
createRfcommSocketToServiceRecord(java.lang.Object bluetoothDevice,
java.util.UUID uuid)
Invokes the method
BluetoothDevice.createRfcommSocketToServiceRecord(UUID). |
static java.lang.Object |
getBluetoothAdapter()
Invokes the method
BluetoothAdapter.getDefaultAdapter(). |
static java.lang.Object |
getBluetoothClass(java.lang.Object bluetoothDevice)
Invokes the method
BluetoothDevice.getBluetoothClass(). |
static java.lang.String |
getBluetoothDeviceAddress(java.lang.Object bluetoothDevice)
Invokes the method
BluetoothDevice.getAddress(). |
static java.lang.String |
getBluetoothDeviceName(java.lang.Object bluetoothDevice)
Invokes the method
BluetoothDevice.getName(). |
static java.util.Set |
getBondedDevices(java.lang.Object bluetoothAdapter)
Invokes the method
BluetoothAdapter.getBondedDevices(). |
static int |
getDeviceClass(java.lang.Object bluetoothClass)
Invokes the method
BluetoothClass.getDeviceClass(). |
static java.io.InputStream |
getInputStream(java.lang.Object bluetoothSocket)
Invokes the method
BluetoothSocket.getInputStream(). |
static java.io.OutputStream |
getOutputStream(java.lang.Object bluetoothSocket)
Invokes the method
BluetoothSocket.getOutputStream(). |
static java.lang.Object |
getRemoteDevice(java.lang.Object bluetoothAdapter,
java.lang.String address)
Invokes the method
BluetoothAdapter.getRemoteDevice(String). |
static boolean |
isBluetoothEnabled(java.lang.Object bluetoothAdapter)
Invokes the method
BluetoothAdapter.isEnabled(). |
static boolean |
isBonded(java.lang.Object bluetoothDevice)
Invokes the method
BluetoothDevice.getBondState(). |
static java.lang.Object |
listenUsingInsecureRfcommWithServiceRecord(java.lang.Object bluetoothAdapter,
java.lang.String name,
java.util.UUID uuid)
Invokes the method
BluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(String, UUID). |
static java.lang.Object |
listenUsingRfcommWithServiceRecord(java.lang.Object bluetoothAdapter,
java.lang.String name,
java.util.UUID uuid)
Invokes the method
BluetoothAdapter.listenUsingRfcommWithServiceRecord(String,UUID). |
public static java.lang.Object getBluetoothAdapter()
BluetoothAdapter.getDefaultAdapter().BluetoothAdapter object, or null if
Bluetooth is not availablepublic static boolean isBluetoothEnabled(java.lang.Object bluetoothAdapter)
BluetoothAdapter.isEnabled().bluetoothAdapter - a BluetoothAdapter objectpublic static java.util.Set getBondedDevices(java.lang.Object bluetoothAdapter)
BluetoothAdapter.getBondedDevices().bluetoothAdapter - a BluetoothAdapter objectBluetoothDevice objectspublic static boolean checkBluetoothAddress(java.lang.Object bluetoothAdapter,
java.lang.String address)
BluetoothAdapter.checkBluetoothAddress(String).bluetoothAdapter - a BluetoothAdapter objectaddress - a string that might be a bluetooth MAC addresspublic static java.lang.Object getRemoteDevice(java.lang.Object bluetoothAdapter,
java.lang.String address)
throws java.lang.IllegalArgumentException
BluetoothAdapter.getRemoteDevice(String).bluetoothAdapter - a BluetoothAdapter objectaddress - the bluetooth MAC address of the deviceBluetoothDevice objectjava.lang.IllegalArgumentExceptionpublic static java.lang.Object listenUsingRfcommWithServiceRecord(java.lang.Object bluetoothAdapter,
java.lang.String name,
java.util.UUID uuid)
throws java.io.IOException
BluetoothAdapter.listenUsingRfcommWithServiceRecord(String,UUID).bluetoothAdapter - a BluetoothAdapter objectname - service name for SDP recorduuid - uuid for SDP recordBluetoothServerSocketjava.io.IOExceptionpublic static java.lang.Object listenUsingInsecureRfcommWithServiceRecord(java.lang.Object bluetoothAdapter,
java.lang.String name,
java.util.UUID uuid)
throws java.io.IOException
BluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(String, UUID).bluetoothAdapter - a BluetoothAdapter objectname - service name for SDP recorduuid - uuid for SDP recordBluetoothServerSocketjava.io.IOExceptionpublic static java.lang.String getBluetoothDeviceName(java.lang.Object bluetoothDevice)
BluetoothDevice.getName().bluetoothDevice - a BluetoothDevice objectBluetoothDevicepublic static java.lang.String getBluetoothDeviceAddress(java.lang.Object bluetoothDevice)
BluetoothDevice.getAddress().bluetoothDevice - a BluetoothDevice objectBluetoothDevicepublic static boolean isBonded(java.lang.Object bluetoothDevice)
BluetoothDevice.getBondState().bluetoothDevice - a BluetoothDevice objectBluetoothDevicepublic static java.lang.Object getBluetoothClass(java.lang.Object bluetoothDevice)
BluetoothDevice.getBluetoothClass().bluetoothDevice - a BluetoothDevice objectBluetoothDevicepublic static java.lang.Object createRfcommSocketToServiceRecord(java.lang.Object bluetoothDevice,
java.util.UUID uuid)
throws java.io.IOException
BluetoothDevice.createRfcommSocketToServiceRecord(UUID).bluetoothDevice - a BluetoothDevice objectuuid - the service record uuidBluetoothSocket objectjava.io.IOExceptionpublic static java.lang.Object createInsecureRfcommSocketToServiceRecord(java.lang.Object bluetoothDevice,
java.util.UUID uuid)
throws java.io.IOException
android.bluetooth.BluetoothDevice#createInsecureRfcommSocketToServiceRecord(Object, UUID).bluetoothDevice - a BluetoothDevice objectuuid - the service record uuidBluetoothSocket objectjava.io.IOExceptionpublic static int getDeviceClass(java.lang.Object bluetoothClass)
BluetoothClass.getDeviceClass().bluetoothClass - a BluetoothClass objectBluetoothClasspublic static void connectToBluetoothSocket(java.lang.Object bluetoothSocket)
throws java.io.IOException
BluetoothSocket.connect().bluetoothSocket - a BluetoothSocket objectjava.io.IOExceptionpublic static java.io.InputStream getInputStream(java.lang.Object bluetoothSocket)
throws java.io.IOException
BluetoothSocket.getInputStream().bluetoothSocket - a BluetoothSocket objectInputStreamjava.io.IOExceptionpublic static java.io.OutputStream getOutputStream(java.lang.Object bluetoothSocket)
throws java.io.IOException
BluetoothSocket.getOutputStream().bluetoothSocket - a BluetoothSocket objectOutputStreamjava.io.IOExceptionpublic static void closeBluetoothSocket(java.lang.Object bluetoothSocket)
throws java.io.IOException
BluetoothSocket.close().bluetoothSocket - a BluetoothSocket objectjava.io.IOExceptionpublic static java.lang.Object accept(java.lang.Object bluetoothServerSocket)
throws java.io.IOException
BluetoothServerSocket.accept().bluetoothServerSocket - a BluetoothServerSocket objectBluetoothSocket objectjava.io.IOExceptionpublic static void closeBluetoothServerSocket(java.lang.Object bluetoothServerSocket)
throws java.io.IOException
BluetoothServerSocket.close().bluetoothServerSocket - a BluetoothServerSocket objectjava.io.IOException