:right-sidebar: True ContentDeserializer =================================================================== .. currentmodule:: gi.repository.Gdk .. class:: ContentDeserializer(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.AsyncResult` :Constructors: :: ContentDeserializer(**properties) Methods ------- .. rst-class:: interim-class .. class:: ContentDeserializer :no-index: .. method:: get_cancellable() -> ~gi.repository.Gio.Cancellable | None Gets the cancellable for the current operation. This is the ``GCancellable`` that was passed to :obj:`~gi.repository.Gdk.content_deserialize_async`. .. method:: get_gtype() -> type Gets the ``GType`` to create an instance of. .. method:: get_input_stream() -> ~gi.repository.Gio.InputStream Gets the input stream for the current operation. This is the stream that was passed to :obj:`~gi.repository.Gdk.content_deserialize_async`. .. method:: get_mime_type() -> str Gets the mime type to deserialize from. .. method:: get_priority() -> int Gets the I/O priority for the current operation. This is the priority that was passed to :obj:`~gi.repository.Gdk.content_deserialize_async`. .. method:: get_task_data() -> None Gets the data that was associated with the current operation. See :obj:`~gi.repository.Gdk.ContentDeserializer.set_task_data`. .. method:: get_user_data() -> None Gets the user data that was passed when the deserializer was registered. .. method:: get_value() -> ~typing.Any Gets the ``GValue`` to store the deserialized object in. .. method:: return_error(error: ~gi.repository.GLib.GError) -> None Indicate that the deserialization has ended with an error. This function consumes ``error``. :param error: a ``GError`` .. method:: return_success() -> None Indicate that the deserialization has been successfully completed. .. method:: set_task_data(data: None, notify: ~typing.Callable[[None], None]) -> None Associate data with the current deserialization operation. :param data: data to associate with this operation :param notify: destroy notify for ``data``