public class BTSocketListener
extends java.lang.Thread
Modifier and Type | Class and Description |
---|---|
static interface |
BTSocketListener.Callback
Bluetooth events handler.
|
Constructor and Description |
---|
BTSocketListener(BluetoothSocket socket,
BTSocketListener.Callback callback)
Create the thread.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Closes the socket and causes the thread to stop.
|
void |
run() |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public BTSocketListener(BluetoothSocket socket, BTSocketListener.Callback callback)
socket
- the bluetooth socket to listencallback
- the event handler