-
public class AcraContentProvider.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static AcraContentProvider.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final UrigetUriForFile(Context context, File file)Get an uri for this content provider for the given file final UrigetUriForFile(Context context, Directory directory, String relativePath)Get an uri for this content provider for the given file final StringguessMimeType(Uri uri)Tries to guess the mime type from uri extension -
-
Method Detail
-
getUriForFile
final Uri getUriForFile(Context context, File file)
Get an uri for this content provider for the given file
- Parameters:
context- a contextfile- the file
-
getUriForFile
final Uri getUriForFile(Context context, Directory directory, String relativePath)
Get an uri for this content provider for the given file
- Parameters:
context- a contextdirectory- the directory, to with the path is relativerelativePath- the file path
-
guessMimeType
final String guessMimeType(Uri uri)
Tries to guess the mime type from uri extension
- Parameters:
uri- the uri
-
-
-
-