Source set: Android
public class SubspaceSemanticsConfiguration
internal constructor(private val config: SemanticsConfiguration) :
SubspaceSemanticsPropertyReceiver, Iterable<Map.Entry<SemanticsPropertyKey<*>, Any?>>
Configuration of semantics properties for a spatial node.
Secondary Constructors
public constructor() : this(SemanticsConfiguration())
Creates a new, empty SubspaceSemanticsConfiguration.
Functions
contains
public operator fun <T> contains(key: SemanticsPropertyKey<T>): Boolean
Returns true if the configuration contains the given key.
getOrElseNullable
public fun <T> getOrElseNullable(key: SemanticsPropertyKey<T>, defaultValue: () -> T?): T?
Returns the value for the given key if present, or the result of defaultValue if not.
getOrElse
public fun <T> getOrElse(key: SemanticsPropertyKey<T>, defaultValue: () -> T): T
Returns the value for the given key if present, or the result of defaultValue if not.
get
public operator fun <T> get(key: SemanticsPropertyKey<T>): T
Returns the value for the given key if present, or throws IllegalStateException if not.
getOrNull
public fun <T> getOrNull(key: SemanticsPropertyKey<T>): T?
Returns the value for the given key if present, or null if not.