Google 致力于为黑人社区推动种族平等。查看具体举措

ActivityResultRegistryOwner

interface ActivityResultRegistryOwner
androidx.activity.result.ActivityResultRegistryOwner

A class that has an ActivityResultRegistry that allows you to register a ActivityResultCallback for handling an androidx.activity.result.contract.ActivityResultContract. If it is not safe to call ActivityResultRegistry#register(String, ActivityResultContract, ActivityResultCallback) in the constructor, it is strongly recommended to also implement ActivityResultCaller.

Summary

Public methods
abstract ActivityResultRegistry

Returns the ActivityResultRegistry of the provider.

Public methods

getActivityResultRegistry

@NonNull abstract fun getActivityResultRegistry(): ActivityResultRegistry

Returns the ActivityResultRegistry of the provider.

Return
ActivityResultRegistry The activity result registry of the provider.