take From Camera
fun takeFromCamera(activity: Activity, context: Context, cameraLauncher: ActivityResultLauncher<Intent>): File
Content copied to clipboard
Obtains the necessary permissions for taking a photo using the device camera. If these permissions have already been granted beforehand, this method also defines the subsequent behavior.
To take a photo using the device camera and save a temporary high-fidelity copy of this photo in the device storage, the following permissions are requested: CAMERA
, READ_EXTERNAL_STORAGE
, and WRITE_EXTERNAL_STORAGE
Return
photo of the artwork taken using the device camera
Parameters
activity
activity calling this method
context
context tied to the activity calling this method
cameraLauncher
activity result launcher related to taking photos using the device camera