Package 

Class ContextExtKt

    • Method Summary

      Modifier and Type Method Description
      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 null if the service is unavailable or not assignable to T.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 null if the service is unavailable or not assignable to T.

        Parameters:
        name - the name of the system service, e.g.