Companion

Functions

Link copied to clipboard
fun bytestringArray(strv: List<String>, length: Long): Variant

Constructs an array of bytestring #GVariant from the given array of strings.

Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of Variant

Link copied to clipboard
fun handle(value: <Error class: unknown class>): Variant

Creates a new handle #GVariant instance.

Link copied to clipboard

Determines if a given string is a valid D-Bus object path. You should ensure that a string is a valid D-Bus object path before passing it to g_variant_new_object_path().

Link copied to clipboard
fun isSignature(string: String): Boolean

Determines if a given string is a valid D-Bus type signature. You should ensure that a string is a valid D-Bus type signature before passing it to g_variant_new_signature().

Link copied to clipboard
fun objectPath(objectPath: String): Variant

Creates a D-Bus object path #GVariant with the contents of @object_path.

Link copied to clipboard
fun parseErrorPrintContext(error: Error, sourceStr: String): String

Pretty-prints a message showing the context of a #GVariant parse error within the string for which parsing was attempted.

Link copied to clipboard
fun parseErrorQuark(): <Error class: unknown class>
Link copied to clipboard
fun parserGetErrorQuark(): <Error class: unknown class>

This is deprecated.

Link copied to clipboard
fun signature(signature: String): Variant

Creates a D-Bus type signature #GVariant with the contents of

Link copied to clipboard
fun strv(strv: List<String>, length: Long): Variant

Constructs an array of strings #GVariant from the given array of strings.

Link copied to clipboard
fun takeString(string: String): Variant

Creates a string #GVariant with the contents of @string.