setGlobalStateProperty

open fun setGlobalStateProperty(@NonNull name: String, @Nullable value: JsonElement)(source)

Set a global state property, used by the global-state expression.

Setting a null value (or com.google.gson.JsonNull) resets the property to the default defined in the style's root state property, or to null if there is none.

Parameters

name

the name of the state property

value

the new value of the state property