CredentialOption.Builder.AddAllowedProvider(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a provider ComponentName to be queried while gathering credentials from credential providers on the device.
[Android.Runtime.Register("addAllowedProvider", "(Landroid/content/ComponentName;)Landroid/credentials/CredentialOption$Builder;", "", ApiSince=34)]
public Android.Credentials.CredentialOption.Builder AddAllowedProvider(Android.Content.ComponentName allowedProvider);
[<Android.Runtime.Register("addAllowedProvider", "(Landroid/content/ComponentName;)Landroid/credentials/CredentialOption$Builder;", "", ApiSince=34)>]
member this.AddAllowedProvider : Android.Content.ComponentName -> Android.Credentials.CredentialOption.Builder
Parameters
- allowedProvider
- ComponentName
Returns
- Attributes
Remarks
Adds a provider ComponentName to be queried while gathering credentials from credential providers on the device. If no candidate providers are specified, all user configured and system credential providers will be queried in the candidate query phase. If an invalid component name is provided, or a service corresponding to the component name does not exist on the device, that component name is ignored. If all component names are invalid, or not present on the device, no providers are queried and no credentials are retrieved.
Android reference for android.credentials.CredentialOption.Builder.addAllowedProvider.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.