{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SemanticsMatcher.Companion

public static class SemanticsMatcher.Companion


Summary

Public methods

static final @NonNull SemanticsMatcher
<T extends Object> expectValue(
    @NonNull SemanticsPropertyKey<@NonNull T> key,
    @NonNull T expectedValue
)

Builds a predicate that tests whether the value of the given key is equal to expectedValue.

static final @NonNull SemanticsMatcher

Builds a predicate that tests whether the given key is defined in semantics.

static final @NonNull SemanticsMatcher

Builds a predicate that tests whether the given key is NOT defined in semantics.

Public methods

expectValue

public static final @NonNull SemanticsMatcher <T extends Object> expectValue(
    @NonNull SemanticsPropertyKey<@NonNull T> key,
    @NonNull T expectedValue
)

Builds a predicate that tests whether the value of the given key is equal to expectedValue.

keyIsDefined

public static final @NonNull SemanticsMatcher <T extends Object> keyIsDefined(@NonNull SemanticsPropertyKey<@NonNull T> key)

Builds a predicate that tests whether the given key is defined in semantics.

keyNotDefined

public static final @NonNull SemanticsMatcher <T extends Object> keyNotDefined(@NonNull SemanticsPropertyKey<@NonNull T> key)

Builds a predicate that tests whether the given key is NOT defined in semantics.