次の方法で共有


CredentialProviderService.ServiceMetaData Field

Definition

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 &lt;{@link android.R.styleable#CredentialProvider credential-provider}&gt; 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.

Applies to