content_register_serializer


Description:


public void content_register_serializer (Type type, string mime_type, owned ContentSerializeFunc serialize)

Registers a function to convert objects of the given type to a serialized representation with the given mime type.

Parameters:

type

the type of objects that the function can serialize

mime_type

the mime type to serialize to

serialize

the callback

data

data that serialize can access

notify

destroy notify for data


Namespace: Gdk
Package: gtk4