GLib.KeyFile.prototype.get_value
function get_value(group_name: String, key: String): String { // Gjs wrapper for g_key_file_get_value() }
Returns the raw value associated with key under group_name. Use GLib.KeyFile.prototype.get_string to retrieve an unescaped UTF-8 string.
In the event the key cannot be found, null is returned and @error is set to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the event that the group_name cannot be found, null is returned and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND.
Since 2.6
- group_name
a group name
- key
a key
- Returns
a newly allocated string or null if the specified key cannot be found.