54a5491b86
- add Settings: Activity to start / stop MPD Service (Main). - Main is a service that run in foreground with a notification. See Service.startForeground documentation for more details. - Main.Client is used to control the service: start or stop it and also receive callbacks when service encounters an error, is killed, is started or is stopped. - Main.start to start the service without any fallback.
10 lines
168 B
Plaintext
10 lines
168 B
Plaintext
package org.musicpd;
|
|
|
|
interface IMainCallback
|
|
{
|
|
void onStarted();
|
|
void onStopped();
|
|
void onError(String error);
|
|
void onLog(int priority, String msg);
|
|
}
|