takeFromCameraIntent

private fun takeFromCameraIntent(intent: Intent, cameraLauncher: ActivityResultLauncher<Intent>, activity: Activity, context: Context)

Launches the activity result pertaining to the device camera should the user decide to take a photo using it.

Parameters

intent

intent associated with launching the device camera

cameraLauncher

activity result launcher related to taking photos with the device camera

activity

activity calling this method

context

context tied to the activity calling this method