IntentSenderRequest.Builder
class IntentSenderRequest.Builder
A builder for constructing IntentSenderRequest instances.
Summary
Public constructors |
|---|
Builder(intentSender: IntentSender) |
Builder(pendingIntent: PendingIntent)Convenience constructor that takes an |
Public functions |
|
|---|---|
IntentSenderRequest |
build()Build the IntentSenderRequest specified by this builder. |
IntentSenderRequest.Builder |
setFillInIntent(fillInIntent: Intent?)Set the intent for the |
IntentSenderRequest.Builder |
Set the flag mask and flag values for the |
Public constructors
Builder
Builder(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 functions
build
fun build(): IntentSenderRequest
Build the IntentSenderRequest specified by this builder.
| Returns | |
|---|---|
IntentSenderRequest |
the newly constructed IntentSenderRequest. |
setFillInIntent
fun setFillInIntent(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. |
| Returns | |
|---|---|
IntentSenderRequest.Builder |
This builder. |
setFlags
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. |
| Returns | |
|---|---|
IntentSenderRequest.Builder |
This builder. |