-
public final class ContextExtKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> TgetSystemServiceAs(Context $self, String name)Returns the system service associated with name, cast to the reified type T, or nullif the service is unavailable or not assignable to T.-
-
Method Detail
-
getSystemServiceAs
final static <T extends Any> T getSystemServiceAs(Context $self, String name)
Returns the system service associated with name, cast to the reified type T, or
nullif the service is unavailable or not assignable to T.- Parameters:
name- the name of the system service, e.g.
-
-
-
-