get_external_data


Description:

[ Version ( since = "1.6" ) ]
public unowned string? get_external_data (string key)

Gets external data specified for the plugin.

External data is specified in the plugin info file prefixed with X-. For example, if a key/value pair `X-Peas=1` is specified in the key file, you can use "Peas" for key to retrieve the value "1".

Note: that you can omit the X- prefix when retrieving the value, but not when specifying the value in the file.

Parameters:

this

A PluginInfo.

key

The key to lookup.

Returns:

the external data, or null if the external data could not be found.