# AppSearchSchema.BooleanPropertyConfig

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.BooleanPropertyConfig#nestedclasses)\|[Inherited Constants](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.BooleanPropertyConfig#inhconstants)\|[Methods](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.BooleanPropertyConfig#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.BooleanPropertyConfig#inhmethods)  

# AppSearchSchema.BooleanPropertyConfig

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BooleanPropertyConfig "View this page in Kotlin")\|Java

`
public
static
final

class
AppSearchSchema.BooleanPropertyConfig
`  
`


``

extends `[AppSearchSchema.PropertyConfig](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig)`


``


`

|---|---|-------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.app.appsearch.AppSearchSchema.PropertyConfig](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig) ||
|   | ↳ | android.app.appsearch.AppSearchSchema.BooleanPropertyConfig |

<br />

*** ** * ** ***

Configuration for a property containing a boolean.

## Summary

|                                                                                                                                               ### Nested classes                                                                                                                                                ||
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [AppSearchSchema.BooleanPropertyConfig.Builder](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.BooleanPropertyConfig.Builder) Builder for[BooleanPropertyConfig](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.BooleanPropertyConfig). |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.app.appsearch.AppSearchSchema.PropertyConfig](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig) |-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [CARDINALITY_OPTIONAL](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_OPTIONAL) Zero or one value \[0,1\].                       | | `int` | [CARDINALITY_REPEATED](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_REPEATED) Any number of items (including zero) \[0...\*\]. | | `int` | [CARDINALITY_REQUIRED](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_REQUIRED) Exactly one value \[1\].                         | |

|                                                                                               ### Public methods                                                                                               ||
|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean` | ` `[isScoringEnabled](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.BooleanPropertyConfig#isScoringEnabled())`() ` Returns if the property is enabled for scoring. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.app.appsearch.AppSearchSchema.PropertyConfig](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig)` ` |-----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` boolean`                                                            | ` `[equals](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` other) ` Indicates whether some other object is "equal to" this one. | | ` int`                                                                | ` `[getCardinality](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#getCardinality())`() ` Returns the cardinality of the property (whether it is optional, required or repeated).                                               | | ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[getDescription](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#getDescription())`() ` Returns a natural language description of this property.                                                                              | | ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[getName](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#getName())`() ` Returns the name of this property.                                                                                                                  | | ` int`                                                                | ` `[hashCode](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#hashCode())`() ` Returns a hash code value for the object.                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[toString](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.PropertyConfig#toString())`() ` Returns a string representation of the object.                                                                                                    | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public methods

### isScoringEnabled

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[T Extensions 17](https://developer.android.com/sdkExtensions)  

```
public boolean isScoringEnabled ()
```

Returns if the property is enabled for scoring.

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |