getSystemService

open fun <T> getSystemService(@NonNull serviceClass: Class<T>): T

Deprecated

Get system service.

Return

The service or null if it does not exist.

Parameters

serviceClass

The class of the desired service.


Deprecated

Get system service.

Return

The service or null if it does not exist.

Parameters

name

Name of the service to get.