Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder for CreateCredentialRequest
.
Summary
Public constructors
Builder
Builder(
type: String,
credentialData: Bundle,
candidateQueryData: Bundle)
Parameters |
type |
String: the type of the credential to be stored This value cannot be null . |
credentialData |
Bundle: the full credential creation request data, which must at minimum contain the required fields observed at the androidx.credentials.CreateCredentialRequest Bundle conversion static methods, because they are required for properly displaying the system credential selector UI This value cannot be null . |
candidateQueryData |
Bundle: the partial request data that will be sent to the provider during the initial creation candidate query stage This value cannot be null . |
Public methods
setAlwaysSendAppInfoToProvider
fun setAlwaysSendAppInfoToProvider(value: Boolean): CreateCredentialRequest.Builder
Sets a true/false value to determine if the calling app info should be removed from the request that is sent to the providers. Developers must set this to false if they wish to remove the android.service.credentials.CallingAppInfo
from the query phases requests that providers receive. Note that the calling app info will still be sent in the final phase after the user has made a selection on the UI. If not set, the default value will be true and the calling app info will be propagated to the providers in every phase.
setIsSystemProviderRequired
fun setIsSystemProviderRequired(value: Boolean): CreateCredentialRequest.Builder
Sets whether the request must only be fulfilled by a system provider. This defaults to false
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 2024-04-04 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 2024-04-04 UTC."],[],[]]