Class ServiceUtils



  • public class ServiceUtils
    extends java.lang.Object
    For internal use only.
    • Constructor Detail

      • ServiceUtils

        public ServiceUtils()
    • Method Detail

      • startAsForegroundServiceIfNeeded

        public static void startAsForegroundServiceIfNeeded(Context context,
                                                            Intent intent)
      • startForegroundIfNeeded

        public static void startForegroundIfNeeded(Service service,
                                                   Intent intent)
      • stopForegroundService

        public static void stopForegroundService(Service service)