KProperty2
Represents a property, operations on which take two receivers as parameters, such as an extension property declared in a class.
Represents a property, operations on which take two receivers as parameters, such as an extension property declared in a class.
Parameters
the type of the first receiver. In case of the extension property in a class this is the type of the declaring class of the property, or any subclass of that class.
the type of the second receiver. In case of the extension property in a class this is the type of the extension receiver.
the type of the property value.
the type of the first receiver. In case of the extension property in a class this is the type of the declaring class of the property, or any subclass of that class.
the type of the second receiver. In case of the extension property in a class this is the type of the extension receiver.
the type of the property value.
the type of the first receiver. In case of the extension property in a class this is the type of the declaring class of the property, or any subclass of that class.
the type of the second receiver. In case of the extension property in a class this is the type of the extension receiver.
the type of the property value.
Types
Functions
Calls this callable with the specified list of arguments and returns the result. Throws an exception if the number of specified arguments is not equal to the size of parameters, or if their types do not match the types of the parameters.
Calls this callable with the specified mapping of parameters to arguments and returns the result. If a parameter is not found in the mapping and is not optional (as per KParameter.isOptional), or its type does not match the type of the provided value, an exception is thrown.
Returns the current value of the property. In case of the extension property in a class, the instance of the class should be passed first and the instance of the extension receiver second.
Returns the current value of the property. In case of the extension property in a class, the instance of the class should be passed first and the instance of the extension receiver second.
Returns the current value of the property. In case of the extension property in a class, the instance of the class should be passed first and the instance of the extension receiver second.
Returns the value of the delegate if this is a delegated property, or null
if this property is not delegated. See the Kotlin language documentation for more information.
Since Kotlin
Properties
true
if this property is const
. See the Kotlin language documentation for more information.
true
if this property is lateinit
. See the Kotlin language documentation for more information.
Inheritors
Extensions
Returns the instance of a delegated member extension property, or null
if this property is not delegated. Throws an exception if this is not an extension property.