//ui/dev.atick.core.ui.utils/TakePictureActivityContract
TakePictureActivityContract
[androidJvm]\ class TakePictureActivityContract : ActivityResultContract<Uri, Pair<Boolean, Uri>>
Contract for taking picture.
Constructors
TakePictureActivityContract | [androidJvm] constructor() |
Functions
Name | Summary |
---|---|
createIntent | [androidJvm] @CallSuper open override fun createIntent(context: Context, input: Uri): Intent Create an intent for taking picture. |
getSynchronousResult | [androidJvm] open override fun getSynchronousResult(context: Context, input: Uri): ActivityResultContract.SynchronousResult<Pair<Boolean, Uri>>? Get the synchronous result. |
parseResult | [androidJvm] open override fun parseResult(resultCode: Int, intent: Intent?): Pair<Boolean, Uri> Parse the result. |