Added in API level 28
Builder
class Builder
kotlin.Any | |
↳ | android.security.ConfirmationPrompt.Builder |
A builder that collects arguments, to be shown on the system-provided confirmation prompt.
Summary
Public constructors | |
---|---|
Creates a builder for the confirmation prompt. |
Public methods | |
---|---|
ConfirmationPrompt! |
build() Creates a |
ConfirmationPrompt.Builder! |
setExtraData(extraData: ByteArray!) Sets the extra data for the prompt. |
ConfirmationPrompt.Builder! |
setPromptText(promptText: CharSequence!) Sets the prompt text for the prompt. |
Public constructors
Builder
Added in API level 28
Builder(context: Context!)
Creates a builder for the confirmation prompt.
Parameters | |
---|---|
context |
Context!: the application context |
Public methods
build
Added in API level 28
fun build(): ConfirmationPrompt!
Creates a ConfirmationPrompt
with the arguments supplied to this builder.
Return | |
---|---|
ConfirmationPrompt! |
a ConfirmationPrompt |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
if any of the required fields are not set. |
setExtraData
Added in API level 28
fun setExtraData(extraData: ByteArray!): ConfirmationPrompt.Builder!
Sets the extra data for the prompt.
Parameters | |
---|---|
extraData |
ByteArray!: data to include in the response data. |
Return | |
---|---|
ConfirmationPrompt.Builder! |
the builder. |
setPromptText
Added in API level 28
fun setPromptText(promptText: CharSequence!): ConfirmationPrompt.Builder!
Sets the prompt text for the prompt.
Parameters | |
---|---|
promptText |
CharSequence!: the text to present in the prompt. |
Return | |
---|---|
ConfirmationPrompt.Builder! |
the builder. |