Gio.Settings.prototype.get_strv

function get_strv(key: String): Array(String) {
    // Gjs wrapper for g_settings_get_strv()
}
  

A convenience variant of Gio.Settings.get for string arrays.

It is a programmer error to give a key that isn't specified as having an array of strings type in the schema for settings.

Since 2.26

key

the key to get the value for

Returns

a newly-allocated, null-terminated array of strings, the value that is stored at key in settings.