IntentSenderRequest.Builder

public final class IntentSenderRequest.Builder


A builder for constructing IntentSenderRequest instances.

Summary

Public constructors

Builder(@NonNull IntentSender intentSender)

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

Builder(@NonNull PendingIntent pendingIntent)

Convenience constructor that takes an PendingIntent and uses its IntentSender.

Public methods

@NonNull IntentSenderRequest

Build the IntentSenderRequest specified by this builder.

@NonNull IntentSenderRequest.Builder

Set the intent for the IntentSenderRequest.

@NonNull IntentSenderRequest.Builder
setFlags(
    @IntentSenderRequest.Builder.Flag @NonNull int values,
    @NonNull int mask
)

Set the flag mask and flag values for the IntentSenderRequest.

Public constructors

Builder

public Builder(@NonNull IntentSender intentSender)

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

Parameters
@NonNull IntentSender intentSender

IntentSender to go in the IntentSenderRequest.

Builder

public Builder(@NonNull PendingIntent pendingIntent)

Convenience constructor that takes an PendingIntent and uses its IntentSender.

Parameters
@NonNull PendingIntent pendingIntent

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

Public methods

build

@NonNull
public IntentSenderRequest build()

Build the IntentSenderRequest specified by this builder.

Returns
IntentSenderRequest

the newly constructed IntentSenderRequest.

setFillInIntent

@NonNull
public IntentSenderRequest.Builder setFillInIntent(@Nullable Intent fillInIntent)

Set the intent for the IntentSenderRequest.

Parameters
@Nullable Intent fillInIntent

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

Returns
IntentSenderRequest.Builder

This builder.

setFlags

@NonNull
public IntentSenderRequest.Builder setFlags(
    @IntentSenderRequest.Builder.Flag @NonNull int values,
    @NonNull int mask
)

Set the flag mask and flag values for the IntentSenderRequest.

Parameters
@IntentSenderRequest.Builder.Flag @NonNull int values

flagValues to go in the IntentSenderRequest. Desired values for any bits set in flagsMask

@NonNull int mask

mask to go in the IntentSenderRequest. Intent flags in the original IntentSender that you would like to change.

Returns
IntentSenderRequest.Builder

This builder.