isServiceRunning

open fun isServiceRunning(cls: Class<out Any>): Boolean

Return whether service is running.

Return

{@code true}: yes{@code false}: no

Parameters

cls

The service class.

open fun isServiceRunning(className: String): Boolean

Return whether service is running.

Return

{@code true}: yes{@code false}: no

Parameters

className

The name of class.