setProperty

fun setProperty(key: String, value: Any): Any?

Define a custom runtime property. It is not used by Engine but may be used by other tools.

Return

the previous value for the provided key if it was defined

Parameters

key
  • the key for the custom property

value
  • the value for the custom property