public final class

IntentSenderRequest.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.activity.result.IntentSenderRequest.Builder

Overview

A builder for constructing IntentSenderRequest instances.

Summary

Constructors
publicBuilder(IntentSender intentSender)

Constructor that takes an IntentSender and sets it for the builder.

publicBuilder(PendingIntent pendingIntent)

Convenience constructor that takes an PendingIntent and uses its IntentSender.

Methods
public IntentSenderRequestbuild()

Build the IntentSenderRequest specified by this builder.

public IntentSenderRequest.BuildersetFillInIntent(Intent fillInIntent)

Set the intent for the IntentSenderRequest.

public IntentSenderRequest.BuildersetFlags(int values, int mask)

Set the flag mask and flag values for the IntentSenderRequest.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(IntentSender intentSender)

Constructor that takes an IntentSender and sets it for the builder.

Parameters:

intentSender: IntentSender to go in the IntentSenderRequest.

public Builder(PendingIntent pendingIntent)

Convenience constructor that takes an PendingIntent and uses its IntentSender.

Parameters:

pendingIntent: the pendingIntent containing with the intentSender to go in the IntentSenderRequest.

Methods

public IntentSenderRequest.Builder setFillInIntent(Intent fillInIntent)

Set the intent for the IntentSenderRequest.

Parameters:

fillInIntent: intent to go in the IntentSenderRequest. If non-null, this will be provided as the intent parameter to IntentSender#sendIntent.

Returns:

This builder.

public IntentSenderRequest.Builder setFlags(int values, int mask)

Set the flag mask and flag values for the IntentSenderRequest.

Parameters:

values: flagValues to go in the IntentSenderRequest. Desired values for any bits set in flagsMask
mask: mask to go in the IntentSenderRequest. Intent flags in the original IntentSender that you would like to change.

Returns:

This builder.

public IntentSenderRequest build()

Build the IntentSenderRequest specified by this builder.

Returns:

the newly constructed IntentSenderRequest.