Gio.Settings.prototype.range_check

function range_check(key: String, value: GLib.Variant): Boolean {
    // Gjs wrapper for g_settings_range_check()
}
  

Checks if the given value is of the correct type and within the permitted range for key.

Since 2.28

key

the key to check

value

the value to check

Returns

true if value is valid for key