AppSearchSchema.BooleanPropertyConfig


class AppSearchSchema.BooleanPropertyConfig : AppSearchSchema.PropertyConfig


Configuration for a property containing a boolean.

Summary

Public functions

Boolean

Returns if the property is enabled for scoring.

Inherited Constants

From androidx.appsearch.app.AppSearchSchema.PropertyConfig
const Int

Zero or one value [0,1].

const Int

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

const Int

Exactly one value [1].

Inherited functions

From androidx.appsearch.app.AppSearchSchema.PropertyConfig
Boolean
equals(other: Any?)
Int

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

String

Returns a natural language description of this property.

String

Returns the name of this property.

Int
String

Public functions

isScoringEnabled

Added in 1.1.0-alpha07
@ExperimentalAppSearchApi
fun isScoringEnabled(): Boolean

Returns if the property is enabled for scoring.