ForegroundServiceLauncher

class ForegroundServiceLauncher(serviceClass: Class<out Service>)

Utility class to hide foreground service lifecycle transition complexities.

Constructors

Link copied to clipboard
fun ForegroundServiceLauncher(serviceClass: Class<out Service>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun isServiceRunning(context: Context): Boolean
Link copied to clipboard
fun startService(context: Context, block: Intent.() -> Unit = {})
Link copied to clipboard
fun stopService(context: Context, block: Intent.() -> Unit = {})