serialize


Description:

[ Version ( since = "2.38" ) ]
public virtual Variant? serialize ()

Serializes a Icon into a Variant .

An equivalent Icon can be retrieved back by calling deserialize on the returned value. As serialization will avoid using raw icon data when possible, it only makes sense to transfer the Variant between processes on the same machine, (as opposed to over the network), and within the same file system namespace.

Parameters:

this

a Icon

Returns:

a Variant, or null when serialization fails. The Variant will not be floating.