Gio.Icon::serialize
function vfunc_serialize(): GLib.Variant {
}
Serializes a Gio.Icon into a GLib.Variant. An equivalent Gio.Icon can be retrieved back by calling Gio.icon_deserialize on the returned value. As serialization will avoid using raw icon data when possible, it only makes sense to transfer the GLib.Variant between processes on the same machine, (as opposed to over the network), and within the same file system namespace.
Since 2.38
- Returns
a GLib.Variant, or null when serialization fails.