floatField

Returns a ReadWriteProperty for float field of the object with the specified fieldId.


context(env: JniEnv, autofreeScope: AutofreeScope)
inline fun JObject.floatField(name: CValuesRef<ByteVar>): ReadWriteProperty<Any?, Float>?(source)

Returns a ReadWriteProperty for float field of the object with the specified name.

Return

a delegatable property of Float type or null if the specified field was not found.

Parameters

name

the static field name in the null-terminated modified UTF-8. Use io.github.mimimishkin.jni.binding.modifiedUtf8 to get it, or if you are sure that your string doesn't have illegal characters you may use optimized String.utf8.

Throws

NoSuchFieldError

if the specified field cannot be found.

ExceptionInInitializerError

if the class initializer fails due to an exception.

if the system runs out of memory.


context(env: JniEnv, autofreeScope: AutofreeScope)
inline fun JObject.floatField(name: String): ReadWriteProperty<Any?, Float>(source)

Returns a ReadWriteProperty for float field of the object with the specified name.

Return

a delegatable property of Float type.

Parameters

name

the static field name.

Throws

NoSuchFieldError

if the specified field cannot be found.

ExceptionInInitializerError

if the class initializer fails due to an exception.

if the system runs out of memory.