stopServiceMatching

inline fun <T> Context.stopServiceMatching(intentAction: String): Boolean

Request that a given application service be stopped. If the service is not running, nothing happens.

Return

If there is a service matching the given Intent that is already running, then it is stopped and true is returned; else false is returned.

See also