core-ktx / androidx.content / android.content.Context / systemService

systemService

inline fun <reified T> Context.systemService(): T

Return the handle to a system-level service by class.

The return type of this function intentionally uses a platform type to allow callers to decide whether they require a service be present or can tolerate its absence.

See Also

Context.getSystemService