Constructor and Description |
---|
MtpServer(MtpDatabase database,
boolean usePtp) |
Modifier and Type | Method and Description |
---|---|
void |
addStorage(MtpStorage storage) |
void |
removeStorage(MtpStorage storage) |
void |
run()
When an object implementing interface
Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
void |
sendDevicePropertyChanged(int property) |
void |
sendObjectAdded(int handle) |
void |
sendObjectRemoved(int handle) |
void |
start() |
public MtpServer(MtpDatabase database, boolean usePtp)
public void start()
public void run()
Runnable
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
The general contract of the method run
is that it may
take any action whatsoever.
run
in interface Runnable
Thread.run()
public void sendObjectAdded(int handle)
public void sendObjectRemoved(int handle)
public void sendDevicePropertyChanged(int property)
public void addStorage(MtpStorage storage)
public void removeStorage(MtpStorage storage)