ContentDeserializer

open class ContentDeserializer(pointer: <Error class: unknown class><<Error class: unknown class>>)

A GdkContentDeserializer is used to deserialize content received via inter-application data transfers.

The GdkContentDeserializer transforms serialized content that is identified by a mime type into an object identified by a GType.

GTK provides serializers and deserializers for common data types such as text, colors, images or file lists. To register your own deserialization functions, use func@content_register_deserializer.

Also see class@Gdk.ContentSerializer.

Skipped during bindings generation

  • parameter notify: GLib.DestroyNotify

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gdkContentDeserializerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gioAsyncResultPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getCancellable(): <Error class: unknown class>?

Gets the cancellable for the current operation.

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

Gets the GType to create an instance of.

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

Gets the input stream for the current operation.

Link copied to clipboard
open fun getMimeType(): String

Gets the mime type to deserialize from.

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

Gets the I/O priority for the current operation.

Link copied to clipboard
open fun getTaskData(): <Error class: unknown class>?

Gets the data that was associated with the current operation.

Link copied to clipboard
open fun getUserData(): <Error class: unknown class>?

Gets the user data that was passed when the deserializer was registered.

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

Gets the GValue to store the deserialized object in.

Link copied to clipboard
open fun returnError(error: <Error class: unknown class>)

Indicate that the deserialization has ended with an error.

Link copied to clipboard
open fun returnSuccess()

Indicate that the deserialization has been successfully completed.