hypertrack-sdk
hypertrack-sdk
/
com.hypertrack.sdk.utils
/
ForegroundServiceLauncher
Foreground
Service
Launcher
class
ForegroundServiceLauncher
(
serviceClass
:
Class
<
out
Service
>
)
Content copied to clipboard
Utility class to hide foreground service lifecycle transition complexities.
Types
Constructors
Functions
Constructors
Foreground
Service
Launcher
Link copied to clipboard
fun
ForegroundServiceLauncher
(
serviceClass
:
Class
<
out
Service
>
)
Content copied to clipboard
Types
Companion
Link copied to clipboard
object
Companion
Content copied to clipboard
Functions
is
Service
Running
Link copied to clipboard
fun
isServiceRunning
(
context
:
Context
)
:
Boolean
Content copied to clipboard
start
Service
Link copied to clipboard
fun
startService
(
context
:
Context
,
block
:
Intent
.
(
)
->
Unit
=
{}
)
Content copied to clipboard
stop
Service
Link copied to clipboard
fun
stopService
(
context
:
Context
,
block
:
Intent
.
(
)
->
Unit
=
{}
)
Content copied to clipboard