public class ServiceUtils
extends java.lang.Object
Constructor and Description |
---|
ServiceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
startAsForegroundServiceIfNeeded(android.content.Context context,
android.content.Intent intent) |
static void |
startForegroundIfNeeded(android.app.Service service,
android.content.Intent intent) |
static void |
stopForegroundService(android.app.Service service) |
public static void startAsForegroundServiceIfNeeded(android.content.Context context, android.content.Intent intent)
public static void startForegroundIfNeeded(android.app.Service service, android.content.Intent intent)
public static void stopForegroundService(android.app.Service service)