ContentDeserializer#
Superclasses: Object
Implemented Interfaces: AsyncResult
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 content_register_deserializer
.
Also see ContentSerializer
.
Methods#
- class ContentDeserializer
- get_cancellable() Cancellable | None #
Gets the cancellable for the current operation.
This is the
GCancellable
that was passed tocontent_deserialize_async
.
- get_gtype() GType #
Gets the
GType
to create an instance of.
- get_input_stream() InputStream #
Gets the input stream for the current operation.
This is the stream that was passed to
content_deserialize_async
.
- get_priority() int #
Gets the I/O priority for the current operation.
This is the priority that was passed to
content_deserialize_async
.
- get_task_data() Any | None #
Gets the data that was associated with the current operation.
See
set_task_data
.
- get_user_data() Any | None #
Gets the user data that was passed when the deserializer was registered.