ForegroundServiceUtil

Functions

Link copied to clipboard
inline fun <T : Service> bind(context: Context, connection: ServiceConnection, mode: Int)
Link copied to clipboard
inline fun <T : Service> isRunning(context: Context): Boolean
Link copied to clipboard
inline fun <T : Service> start(context: Context, action: String = ServiceConstants.ACTION_START_SERVICE, block: Intent.() -> Unit)
Link copied to clipboard
inline fun <T : Service> stop(context: Context)
Link copied to clipboard
fun unbind(context: Context, connection: ServiceConnection)