ContentSerializer

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

A GdkContentSerializer is used to serialize content for inter-application data transfers.

The GdkContentSerializer transforms an object that is identified by a GType into a serialized form (i.e. a byte stream) that is identified by a mime type.

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

Also see class@Gdk.ContentDeserializer.

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 gdkContentSerializerPointer: <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 of the object to serialize.

Link copied to clipboard
open fun getMimeType(): String

Gets the mime type to serialize to.

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

Gets the output stream for the current operation.

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 serializer was registered.

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

Gets the GValue to read the object to serialize from.

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

Indicate that the serialization has ended with an error.

Link copied to clipboard
open fun returnSuccess()

Indicate that the serialization has been successfully completed.