asBoolean

fun <Error class: unknown class>.asBoolean(): Boolean

Converts a native C gboolean into its Kotlin equivalent Boolean.

In the C language, gboolean is typically represented as an integer, where any non-zero value is considered true, and 0 is false.

Receiver

The native gboolean value to convert.

Return

true if the gboolean is non-zero, or false if it is 0.