WalletDcApiPresentment
object WalletDcApiPresentment
Answers the phone's own ID sheet — the W3C Digital Credentials API on Android. A browser calls navigator.credentials.get({ digital: … }), the user picks this wallet in the system sheet, and Credential Manager opens the SDK's screen: consent, the app's share guard (face check), the answer.
Set sdk once at app start, register the documents with com.wallet.registerAsDcProvider, and add the intent-filter to the SDK's activity in your AndroidManifest.xml (the manifest merger adds it to the activity the SDK declares; xmlns:tools="http://schemas.android.com/tools" on the root element):
<activity
android:name="com.wallet.ui.WalletDigitalCredentialsActivity"
android:exported="true"
tools:node="merge">
<intent-filter>
<action android:name="androidx.credentials.registry.provider.action.GET_CREDENTIAL" />
<action android:name="androidx.identitycredentials.action.GET_CREDENTIALS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>Content copied to clipboard
// Application.onCreate
WalletDcApiPresentment.sdk = App.sdkContent copied to clipboard