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 constructors

Public methods

@Override int
@Nullable Intent

Get the intent from this IntentSender request.

int

Get the flag mask from this IntentSender request.

int

Get the flag values from this IntentSender request.

@NonNull IntentSender

Get the intentSender from this IntentSenderRequest.

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

Constants

CREATOR

public static final @NonNull Parcelable.Creator<IntentSenderRequestCREATOR

Public constructors

IntentSenderRequest

public final IntentSenderRequest()

Public methods

describeContents

@Override
public int describeContents()

getFillInIntent

public @Nullable Intent getFillInIntent()

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

Returns
@Nullable Intent

the fill in intent.

getFlagsMask

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

public int getFlagsValues()

Get the flag values from this IntentSender request.

Returns
int

desired values for any bits set in flagsMask

getIntentSender

public @NonNull IntentSender getIntentSender()

Get the intentSender from this IntentSenderRequest.

Returns
@NonNull IntentSender

the IntentSender to launch.

writeToParcel

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