VerificationState.Companion


public static class VerificationState.Companion


Summary

Public methods

static final @NonNull VerificationState
fromState(int state)

Returns the VerificationState corresponding to the given state integer.

static final VerificationState

Returns the least verified VerificationState of a list of VerificationState.

Public methods

fromState

public static final @NonNull VerificationState fromState(int state)

Returns the VerificationState corresponding to the given state integer.

Throws if state is not a valid representation of a VerificationState.

leastVerifiedFrom

public static final VerificationState leastVerifiedFrom(List<@NonNull VerificationState> states)

Returns the least verified VerificationState of a list of VerificationState.

This method should be used to decide which state should be displayed to the user for a set of keys.

The least verified state is VERIFICATION_FAILED, then UNVERIFIED, then VERIFIED.

Returns null if states is empty or null.