Companion
object Companion
Content copied to clipboard
Companion object containing methods for handling the posting of an artwork in relation to choosing a photo from the Gallery or taking a photo using the device camera, alongside constants associated with these operations.
Properties
FROM_CAMERA
Link copied to clipboard
FROM_GALLERY
Link copied to clipboard
PACKAGE_NAME
Link copied to clipboard
PHOTO_DEFAULT_FILE_NAME
Link copied to clipboard
Functions
chooseFromGallery
Link copied to clipboard
fun chooseFromGallery(activity: Activity, galleryLauncher: ActivityResultLauncher<Intent>)
Content copied to clipboard
chooseFromGalleryIntent
Link copied to clipboard
private fun chooseFromGalleryIntent(galleryLauncher: ActivityResultLauncher<Intent>)
Content copied to clipboard
getPhotoFile
Link copied to clipboard
permissionsResultCamera
Link copied to clipboard
fun permissionsResultCamera(grantResults: IntArray, activity: Activity, context: Context, cameraLauncher: ActivityResultLauncher<Intent>): File?
Content copied to clipboard
permissionsResultGallery
Link copied to clipboard
fun permissionsResultGallery(grantResults: IntArray, context: Context, galleryLauncher: ActivityResultLauncher<Intent>)
Content copied to clipboard
takeFromCamera
Link copied to clipboard
fun takeFromCamera(activity: Activity, context: Context, cameraLauncher: ActivityResultLauncher<Intent>): File
Content copied to clipboard
takeFromCameraIntent
Link copied to clipboard
private fun takeFromCameraIntent(intent: Intent, cameraLauncher: ActivityResultLauncher<Intent>, activity: Activity, context: Context)
Content copied to clipboard