ContentSerializer#
Superclasses: Object
Implemented Interfaces: AsyncResult
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 content_register_serializer
.
Also see ContentDeserializer
.
Methods#
- class ContentSerializer
- get_cancellable() Cancellable | None #
Gets the cancellable for the current operation.
This is the
GCancellable
that was passed tocontent_serialize_async
.
- get_gtype() GType #
Gets the
GType
to of the object to serialize.
- get_output_stream() OutputStream #
Gets the output stream for the current operation.
This is the stream that was passed to
content_serialize_async
.
- get_priority() int #
Gets the I/O priority for the current operation.
This is the priority that was passed to
content_serialize_async
.
- get_task_data() Any | None #
Gets the data that was associated with the current operation.
See
set_task_data
.