IntentSenderRequest

public final class IntentSenderRequest


A request for a androidx.activity.result.contract.ActivityResultContracts.StartIntentSenderForResult Activity Contract.

Summary

Nested types

IntentSenderRequest.Builder

A builder for constructing IntentSenderRequest instances.

Public methods

@Override @NonNull int
@Nullable Intent

Get the intent from this IntentSender request.

@NonNull int

Get the flag mask from this IntentSender request.

@NonNull int

Get the flag values from this IntentSender request.

@NonNull IntentSender

Get the intentSender from this IntentSenderRequest.

@Override @NonNull void
writeToParcel(@NonNull Parcel dest, @NonNull int flags)

Constants

Public methods

describeContents

@Override
@NonNull
public @Override int describeContents()

getFillInIntent

@Nullable
@NonNull
public Intent getFillInIntent()

Get the intent from this IntentSender request. If non-null, this will be provided as the intent parameter to IntentSender#sendIntent.

Returns
Intent

the fill in intent.

getFlagsMask

@NonNull
public int getFlagsMask()

Get the flag mask from this IntentSender request.

Returns
int

intent flags in the original IntentSender that you would like to change.

getFlagsValues

@NonNull
public int getFlagsValues()

Get the flag values from this IntentSender request.

Returns
int

desired values for any bits set in flagsMask

getIntentSender

@NonNull
public IntentSender getIntentSender()

Get the intentSender from this IntentSenderRequest.

Returns
IntentSender

the IntentSender to launch.

writeToParcel

@Override
@NonNull
public @Override void writeToParcel(@NonNull Parcel dest, @NonNull int flags)