← Docs
kotlin-stdlib / kotlin.properties / ObservableProperty / setValue

setValue

Common
JVM
JS
Native
1.0
open fun setValue (
thisRef : Any ? ,
property : KProperty < * > ,
value : V )

(source)

Sets the value of the property for the given object.

Parameters

thisRef - the object for which the value is requested.

property - the metadata for the property.

value - the value to set.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .