VerificationEntryDisplayProperties


public final class VerificationEntryDisplayProperties extends EntryDisplayProperties


The display metadata associated with a DigitalCredentialEntry to be rendered in a selector UI style serving the verification purpose.

The explainer, if set, will be displayed below the entry and rendered as a note (e.g. in a grey background). For example, you can use it to display a note of the terms of your service.

The warning, if set, will be displayed below the entry, in parallel to the explainer and highlighted as a warning (e.g. bolded, in a red background). For example, you can use it to display a warning if the calling app is requesting very sensitive information.

Summary

Public constructors

VerificationEntryDisplayProperties(
    @NonNull CharSequence title,
    CharSequence subtitle,
    @NonNull Bitmap icon,
    CharSequence explainer,
    CharSequence warning
)

Public methods

boolean
equals(Object other)
final CharSequence

the additional note or explainer to display for this entry, if applicable

final @NonNull Bitmap

the icon to display for this entry; this icon should be 32x32 and if not will be rescaled into a 32x32 pixel PGN for display

final CharSequence

the subtitle to display for this entry

final @NonNull CharSequence

the title to display for this entry in the Credential Manager selector UI

final CharSequence

the warning to display for this entry, if applicable

int

Inherited methods

From androidx.credentials.registry.provider.digitalcredentials.EntryDisplayProperties
final int

type of the credential selector UI that will be displayed to the user

Public constructors

VerificationEntryDisplayProperties

Added in 1.0.0-alpha01
public VerificationEntryDisplayProperties(
    @NonNull CharSequence title,
    CharSequence subtitle,
    @NonNull Bitmap icon,
    CharSequence explainer,
    CharSequence warning
)

Public methods

equals

public boolean equals(Object other)

getExplainer

Added in 1.0.0-alpha01
public final CharSequence getExplainer()

the additional note or explainer to display for this entry, if applicable

getIcon

Added in 1.0.0-alpha01
public final @NonNull Bitmap getIcon()

the icon to display for this entry; this icon should be 32x32 and if not will be rescaled into a 32x32 pixel PGN for display

getSubtitle

Added in 1.0.0-alpha01
public final CharSequence getSubtitle()

the subtitle to display for this entry

getTitle

Added in 1.0.0-alpha01
public final @NonNull CharSequence getTitle()

the title to display for this entry in the Credential Manager selector UI

getWarning

Added in 1.0.0-alpha01
public final CharSequence getWarning()

the warning to display for this entry, if applicable

hashCode

public int hashCode()