O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

ActivityResultCaller

interface ActivityResultCaller
androidx.activity.result.ActivityResultCaller

A class that can call Activity#startActivityForResult-style APIs without having to manage request codes, and converting request/response to an Intent

Summary

Public methods
abstract ActivityResultLauncher<I>
registerForActivityResult(@NonNull contract: ActivityResultContract<I, O>, @NonNull callback: ActivityResultCallback<O>)

Register a request to Activity#startActivityForResult, designated by the given contract.

abstract ActivityResultLauncher<I>
registerForActivityResult(@NonNull contract: ActivityResultContract<I, O>, @NonNull registry: ActivityResultRegistry, @NonNull callback: ActivityResultCallback<O>)

Register a request to Activity#startActivityForResult, designated by the given contract.

Extension functions
From androidx.activity.result
ActivityResultLauncher<Unit>