Settings#
Superclasses: Object
A representation of the settings exposed by the portal.
The Settings
object is used to access and observe the settings
exposed by xdg-desktop-portal.
It is obtained from get_settings
. Call
read_value
to read a settings value. Connect to
changed
to observe value changes.
Methods#
- class Settings
- read_all_values(namespaces: str, cancellable: Cancellable | None = None) Variant #
Read all the setting values within
namespace
.- Parameters:
namespaces – List of namespaces to filter results by, supports simple globbing explained below.
cancellable – a GCancellable or NULL.
- read_string(namespace: str, key: str, cancellable: Cancellable | None = None) str #
Read a setting value as unsigned int within
namespace
, withkey
.- Parameters:
namespace – the namespace of the value.
key – the key of the value.
cancellable – a GCancellable or NULL.