Package 

Class ContextUtilsKt

    • Method Summary

      Modifier and Type Method Description
      final static Boolean isPermissionDeclared(Context $self, String permission) Returns if we need to check for the given permission or not.
      final static Unit shareLocalFile(Context $self, Uri uri, String mimeType, String text) Share a local file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isPermissionDeclared

         final static Boolean isPermissionDeclared(Context $self, String permission)

        Returns if we need to check for the given permission or not.

        Parameters:
        permission - The permission to check.
      • shareLocalFile

         final static Unit shareLocalFile(Context $self, Uri uri, String mimeType, String text)

        Share a local file.

        Parameters:
        uri - The local file Uri to share.
        mimeType - The mime type of the local file to share.
        text - An optional text to share along with the file.