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 PendingIntent and uses its IntentSender.

Public functions

IntentSenderRequest

Build the IntentSenderRequest specified by this builder.

IntentSenderRequest.Builder
setFillInIntent(fillInIntent: Intent?)

Set the intent for the IntentSenderRequest.

IntentSenderRequest.Builder
setFlags(values: Int, mask: Int)

Set the flag mask and flag values for the IntentSenderRequest.

Public constructors

Builder

Added in 1.2.0
Builder(intentSender: IntentSender)

Builder

Added in 1.2.0
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

Added in 1.2.0
fun build(): IntentSenderRequest

Build the IntentSenderRequest specified by this builder.

Returns
IntentSenderRequest

the newly constructed IntentSenderRequest.

setFillInIntent

Added in 1.2.0
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

Added in 1.2.0
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.