AppSearchSchema.BooleanPropertyConfig


public final class AppSearchSchema.BooleanPropertyConfig extends AppSearchSchema.PropertyConfig


Configuration for a property containing a boolean.

Summary

Nested types

Builder for BooleanPropertyConfig.

Public methods

boolean

Returns if the property is enabled for scoring.

Inherited Constants

From androidx.appsearch.app.AppSearchSchema.PropertyConfig
static final int

Zero or one value [0,1].

static final int

Any number of items (including zero) [0...*].

static final int

Exactly one value [1].

Inherited methods

From androidx.appsearch.app.AppSearchSchema.PropertyConfig
boolean
int

Returns the cardinality of the property (whether it is optional, required or repeated).

@NonNull String

Returns a natural language description of this property.

@NonNull String

Returns the name of this property.

int
@NonNull String

Public methods

isScoringEnabled

Added in 1.1.0-alpha07
@ExperimentalAppSearchApi
public boolean isScoringEnabled()

Returns if the property is enabled for scoring.