CredentialProviderService.ServiceMetaData Field
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.
Name under which a Credential Provider service component publishes information about itself.
[Android.Runtime.Register("SERVICE_META_DATA", ApiSince=34)]
public const string ServiceMetaData;
[<Android.Runtime.Register("SERVICE_META_DATA", ApiSince=34)>]
val mutable ServiceMetaData : string
Field Value
- Attributes
Remarks
Name under which a Credential Provider service component publishes information about itself. This meta-data must reference an XML resource containing an <{@link android.R.styleable#CredentialProvider credential-provider}>
tag.
For example (AndroidManifest.xml): <meta-data android:name="android.credentials.provider" android:resource="@xml/provider"/>
For example (xml/provider.xml): <credential-provider xmlns:android="http://schemas.android.com/apk/res/android" android:settingsSubtitle="@string/providerSubtitle"> <capabilities> <capability>@string/passwords</capability> <capability>@string/passkeys</capability> </capabilities> <string name="passwords">android.credentials.TYPE_PASSWORD_CREDENTIAL</string> <string name="passkeys">android.credentials.TYPE_PUBLIC_KEY_CREDENTIAL</string> </credential-provider>
Java documentation for android.service.credentials.CredentialProviderService.SERVICE_META_DATA
.
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.