public class BTServer
extends java.lang.Thread
Thread.start()
to start it.Modifier and Type | Class and Description |
---|---|
static interface |
BTServer.Callback |
Constructor and Description |
---|
BTServer(BTServer.Callback callback,
java.lang.String btServiceName,
java.util.UUID uuid)
Creates the server with the given service name and UUID.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Will cancel the listening socket, and cause the thread to finish
|
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 BTServer(BTServer.Callback callback, java.lang.String btServiceName, java.util.UUID uuid) throws java.io.IOException
callback
- event handlerbtServiceName
- the name of the bluetooth serviceuuid
- the uuid of the bluetooth servicejava.io.IOException
- if the server creation failed