Builder
class Builder
kotlin.Any | |
↳ | androidx.activity.result.IntentSenderRequest.Builder |
A builder for constructing IntentSenderRequest
instances.
Summary
Public constructors | |
---|---|
<init>(@NonNull intentSender: IntentSender) Constructor that takes an |
|
<init>(@NonNull pendingIntent: PendingIntent) Convenience constructor that takes an |
Public methods | |
---|---|
IntentSenderRequest |
build() Build the IntentSenderRequest specified by this builder. |
IntentSenderRequest.Builder |
setFillInIntent(@Nullable fillInIntent: Intent?) Set the intent for the |
IntentSenderRequest.Builder |
Set the flag mask and flag values for the |
Public constructors
<init>
Builder(@NonNull intentSender: IntentSender)
Constructor that takes an IntentSender
and sets it for the builder.
Parameters | |
---|---|
intentSender |
IntentSender: IntentSender to go in the IntentSenderRequest. |
<init>
Builder(@NonNull pendingIntent: PendingIntent)
Convenience constructor that takes an PendingIntent
and uses its IntentSender
.
Parameters | |
---|---|
pendingIntent |
PendingIntent: the pendingIntent containing with the intentSender to go in the IntentSenderRequest. |
Public methods
build
@NonNull fun build(): IntentSenderRequest
Build the IntentSenderRequest specified by this builder.
Return | |
---|---|
IntentSenderRequest |
the newly constructed IntentSenderRequest. |
setFillInIntent
@NonNull fun setFillInIntent(@Nullable fillInIntent: Intent?): IntentSenderRequest.Builder
Set the intent for the IntentSenderRequest
.
Parameters | |
---|---|
fillInIntent |
Intent?: intent to go in the IntentSenderRequest. If non-null, this will be provided as the intent parameter to IntentSender#sendIntent. |
Return | |
---|---|
IntentSenderRequest.Builder |
This builder. |
setFlags
@NonNull fun setFlags(
values: Int,
mask: Int
): IntentSenderRequest.Builder
Set the flag mask and flag values for the IntentSenderRequest
.
Parameters | |
---|---|
values |
Int: flagValues to go in the IntentSenderRequest. Desired values for any bits set in flagsMask |
mask |
Int: mask to go in the IntentSenderRequest. Intent flags in the original IntentSender that you would like to change. |
Return | |
---|---|
IntentSenderRequest.Builder |
This builder. |