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

ActivityResultContracts

public final class ActivityResultContracts
extends Object

java.lang.Object
   ↳ androidx.activity.result.contract.ActivityResultContracts


A collection of some standard activity call contracts, as provided by android.

Summary

Nested classes

class ActivityResultContracts.CreateDocument

An ActivityResultContract to prompt the user to select a path for creating a new document, returning the content: Uri of the item that was created. 

class ActivityResultContracts.GetContent

An ActivityResultContract to prompt the user to pick a piece of content, receiving a content:// Uri for that content that allows you to use ContentResolver.openInputStream(Uri) to access the raw data. 

class ActivityResultContracts.GetMultipleContents

An ActivityResultContract to prompt the user to pick one or more a pieces of content, receiving a content:// Uri for each piece of content that allows you to use ContentResolver.openInputStream(Uri) to access the raw data. 

class ActivityResultContracts.OpenDocument

An ActivityResultContract to prompt the user to open a document, receiving its contents as a file:/http:/content: Uri

class ActivityResultContracts.OpenDocumentTree

An ActivityResultContract to prompt the user to select a directory, returning the user selection as a Uri

class ActivityResultContracts.OpenMultipleDocuments

An ActivityResultContract to prompt the user to open (possibly multiple) documents, receiving their contents as file:/http:/content: Uris. 

class ActivityResultContracts.PickContact

An ActivityResultContract to request the user to pick a contact from the contacts app. 

class ActivityResultContracts.RequestMultiplePermissions

An ActivityResultContract to request permissions  

class ActivityResultContracts.RequestPermission

An ActivityResultContract to request a permission  

class ActivityResultContracts.StartActivityForResult

An ActivityResultContract that doesn't do any type conversion, taking raw Intent as an input and ActivityResult as an output. 

class ActivityResultContracts.StartIntentSenderForResult

An ActivityResultContract that calls Activity.startIntentSender(IntentSender, Intent, int, int, int)

class ActivityResultContracts.TakePicture

An ActivityResultContract to take a picture saving it into the provided content-Uri

class ActivityResultContracts.TakePicturePreview

An ActivityResultContract to take small a picture preview, returning it as a Bitmap

class ActivityResultContracts.TakeVideo

An ActivityResultContract to take a picture saving it into the provided content-Uri

Inherited methods