Added in API level 34
Builder
class Builder
| kotlin.Any | |
| ↳ | android.service.credentials.BeginGetCredentialRequest.Builder |
Builder for BeginGetCredentialRequest.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| BeginGetCredentialRequest.Builder |
addBeginGetCredentialOption(beginGetCredentialOption: BeginGetCredentialOption)Adds a single |
| BeginGetCredentialRequest |
build()Builds a new |
| BeginGetCredentialRequest.Builder |
setBeginGetCredentialOptions(getBeginCredentialOptions: MutableList<BeginGetCredentialOption!>)Sets the list of credential options. |
| BeginGetCredentialRequest.Builder |
setCallingAppInfo(callingAppInfo: CallingAppInfo?)Sets information pertaining to the calling app. |
Public constructors
Builder
Builder()
Public methods
addBeginGetCredentialOption
Added in API level 34
fun addBeginGetCredentialOption(beginGetCredentialOption: BeginGetCredentialOption): BeginGetCredentialRequest.Builder
Adds a single BeginGetCredentialOption object to the list of credential options.
| Parameters | |
|---|---|
beginGetCredentialOption |
BeginGetCredentialOption: This value cannot be null. |
| Return | |
|---|---|
BeginGetCredentialRequest.Builder |
This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
If beginGetCredentialOption is null. |
build
Added in API level 34
fun build(): BeginGetCredentialRequest
Builds a new BeginGetCredentialRequest instance.
| Return | |
|---|---|
BeginGetCredentialRequest |
This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
If beginGetCredentialOptions is null. |
java.lang.IllegalArgumentException |
If beginGetCredentialOptions is empty, or if callingAppInfo is null or empty. |
setBeginGetCredentialOptions
Added in API level 34
fun setBeginGetCredentialOptions(getBeginCredentialOptions: MutableList<BeginGetCredentialOption!>): BeginGetCredentialRequest.Builder
Sets the list of credential options.
| Parameters | |
|---|---|
getBeginCredentialOptions |
MutableList<BeginGetCredentialOption!>: This value cannot be null. |
| Return | |
|---|---|
BeginGetCredentialRequest.Builder |
This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
If getBeginCredentialOptions itself or any of its elements is null. |
java.lang.IllegalArgumentException |
If getBeginCredentialOptions is empty. |
setCallingAppInfo
Added in API level 34
fun setCallingAppInfo(callingAppInfo: CallingAppInfo?): BeginGetCredentialRequest.Builder
Sets information pertaining to the calling app.
| Parameters | |
|---|---|
callingAppInfo |
CallingAppInfo?: the info object containing the package name, and app signatures This value may be null. |
| Return | |
|---|---|
BeginGetCredentialRequest.Builder |
This value cannot be null. |