Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for BeginGetCredentialRequest
.
Summary
Public constructors
Public methods
build
fun build(): BeginGetCredentialRequest
Builds a new BeginGetCredentialRequest
instance.
Exceptions |
java.lang.NullPointerException |
If beginGetCredentialOptions is null. |
java.lang.IllegalArgumentException |
If beginGetCredentialOptions is empty, or if callingAppInfo is null or empty. |
setBeginGetCredentialOptions
fun setBeginGetCredentialOptions(getBeginCredentialOptions: MutableList<BeginGetCredentialOption!>): BeginGetCredentialRequest.Builder
Sets the list of credential options.
Exceptions |
java.lang.NullPointerException |
If getBeginCredentialOptions itself or any of its elements is null. |
java.lang.IllegalArgumentException |
If getBeginCredentialOptions is empty. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# BeginGetCredentialRequest.Builder\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/credentials/BeginGetCredentialRequest.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|--------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.service.credentials.BeginGetCredentialRequest.Builder](#) |\n\nBuilder for [BeginGetCredentialRequest](/reference/kotlin/android/service/credentials/BeginGetCredentialRequest).\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BeginGetCredentialRequest.Builder](#) | [addBeginGetCredentialOption](#addBeginGetCredentialOption(android.service.credentials.BeginGetCredentialOption))`(`beginGetCredentialOption:` `[BeginGetCredentialOption](/reference/kotlin/android/service/credentials/BeginGetCredentialOption)`)` Adds a single [BeginGetCredentialOption](/reference/kotlin/android/service/credentials/BeginGetCredentialOption) object to the list of credential options. |\n| [BeginGetCredentialRequest](/reference/kotlin/android/service/credentials/BeginGetCredentialRequest) | [build](#build())`()` Builds a new [BeginGetCredentialRequest](/reference/kotlin/android/service/credentials/BeginGetCredentialRequest) instance. |\n| [BeginGetCredentialRequest.Builder](#) | [setBeginGetCredentialOptions](#setBeginGetCredentialOptions(kotlin.collections.MutableList))`(`getBeginCredentialOptions:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[BeginGetCredentialOption](/reference/kotlin/android/service/credentials/BeginGetCredentialOption)!\u003e`)` Sets the list of credential options. |\n| [BeginGetCredentialRequest.Builder](#) | [setCallingAppInfo](#setCallingAppInfo(android.service.credentials.CallingAppInfo))`(`callingAppInfo:` `[CallingAppInfo](/reference/kotlin/android/service/credentials/CallingAppInfo)?`)` Sets information pertaining to the calling app. |\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### addBeginGetCredentialOption\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun addBeginGetCredentialOption(beginGetCredentialOption: BeginGetCredentialOption): BeginGetCredentialRequest.Builder\n```\n\nAdds a single [BeginGetCredentialOption](/reference/kotlin/android/service/credentials/BeginGetCredentialOption) object to the list of credential options.\n\n| Parameters ||\n|----------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| `beginGetCredentialOption` | [BeginGetCredentialOption](/reference/kotlin/android/service/credentials/BeginGetCredentialOption): This value cannot be `null`. |\n\n| Return ||\n|----------------------------------------|------------------------------|\n| [BeginGetCredentialRequest.Builder](#) | This value cannot be `null`. |\n\n| Exceptions ||\n|----------------------------------|----------------------------------------|\n| `java.lang.NullPointerException` | If `beginGetCredentialOption` is null. |\n\n### build\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): BeginGetCredentialRequest\n```\n\nBuilds a new [BeginGetCredentialRequest](/reference/kotlin/android/service/credentials/BeginGetCredentialRequest) instance.\n\n| Return ||\n|------------------------------------------------------------------------------------------------------|------------------------------|\n| [BeginGetCredentialRequest](/reference/kotlin/android/service/credentials/BeginGetCredentialRequest) | This value cannot be `null`. |\n\n| Exceptions ||\n|--------------------------------------|-----------------------------------------------------------------------------------|\n| `java.lang.NullPointerException` | If `beginGetCredentialOptions` is null. |\n| `java.lang.IllegalArgumentException` | If `beginGetCredentialOptions` is empty, or if `callingAppInfo` is null or empty. |\n\n### setBeginGetCredentialOptions\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setBeginGetCredentialOptions(getBeginCredentialOptions: MutableList\u003cBeginGetCredentialOption!\u003e): BeginGetCredentialRequest.Builder\n```\n\nSets the list of credential options.\n\n| Parameters ||\n|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `getBeginCredentialOptions` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[BeginGetCredentialOption](/reference/kotlin/android/service/credentials/BeginGetCredentialOption)!\\\u003e: This value cannot be `null`. |\n\n| Return ||\n|----------------------------------------|------------------------------|\n| [BeginGetCredentialRequest.Builder](#) | This value cannot be `null`. |\n\n| Exceptions ||\n|--------------------------------------|-----------------------------------------------------------------------|\n| `java.lang.NullPointerException` | If `getBeginCredentialOptions` itself or any of its elements is null. |\n| `java.lang.IllegalArgumentException` | If `getBeginCredentialOptions` is empty. |\n\n### setCallingAppInfo\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setCallingAppInfo(callingAppInfo: CallingAppInfo?): BeginGetCredentialRequest.Builder\n```\n\nSets information pertaining to the calling app.\n\n| Parameters ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `callingAppInfo` | [CallingAppInfo](/reference/kotlin/android/service/credentials/CallingAppInfo)?: the info object containing the package name, and app signatures This value may be `null`. |\n\n| Return ||\n|----------------------------------------|------------------------------|\n| [BeginGetCredentialRequest.Builder](#) | This value cannot be `null`. |"]]