Callbacks¶
|
|
|
Details¶
- Accounts.AccountNotifyCb(account, key, *user_data)¶
- Parameters:
account (
Accounts.Account) – theAccounts.Account.key (
str) – the name of the key whose value has changed.user_data (
objectorNone) – the user data that was passed when installing this callback.
This callback is invoked when the value of an account configuration setting changes. If the callback was installed with
Accounts.Account.watch_key() then key is the name of the configuration setting which changed; if it was installed withAccounts.Account.watch_dir() then key is the same key prefix that was used when installing this callback.
- Accounts.AccountStoreCb(account, error, *user_data)¶
- Parameters:
account (
Accounts.Account) – theAccounts.Account.error (
GLib.Error) – aGLib.Error, orNone.user_data (
objectorNone) – the user data that was passed toAccounts.Account.store().
This callback is invoked when storing the account settings is completed. If error is not
None, then some error occurred and the data has most likely not been written.