OutputUtil
Kotlin
|Java
@RequiresApi(21) class OutputUtil
kotlin.Any | |
↳ | androidx.camera.video.internal.utils.OutputUtil |
Utility class for output related operations.
Summary
Public methods | |
---|---|
static Boolean |
createParentFolder(@NonNull file: File) Creates parent folder for the input file. |
static String? |
getAbsolutePathFromUri(@NonNull resolver: ContentResolver, @NonNull contentUri: Uri, @NonNull mediaStoreColumn: String) Gets the absolute path from a Uri. |
Public methods
createParentFolder
static fun createParentFolder(@NonNull file: File): Boolean
Creates parent folder for the input file.
Parameters | |
---|---|
file |
File: the input file to create its parent folder |
Return | |
---|---|
Boolean |
true if the parent folder already exists or is created successfully. false if the existing parent folder path is not a folder or failed to create. |
getAbsolutePathFromUri
@Nullable static fun getAbsolutePathFromUri(
@NonNull resolver: ContentResolver,
@NonNull contentUri: Uri,
@NonNull mediaStoreColumn: String
): String?
Gets the absolute path from a Uri.