Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Lfb.gdbus_feedback_interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo
. Do not free.- Return type:
Gets a machine-readable description of the ‘org.sigxcpu.Feedback [gdbus-interface-org-sigxcpu-Feedback.top_of_page]’ D-Bus interface.
- Lfb.gdbus_feedback_override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass
) – The class structure for aGObject.Object
derived class.property_id_begin (
int
) – The property id to assign to the first overridden property.
- Returns:
The last property id.
- Return type:
Overrides all
GObject.Object
properties in theLfb.GdbusFeedback
interface for a concrete class. The properties are overridden in the order they are defined.
- Lfb.get_app_id()¶
- Returns:
the application id.
- Return type:
Get the application id set via [func`Lfb`.set_app_id].
- Lfb.get_feedback_profile()¶
-
Gets the currently set feedback profile.
- Lfb.get_proxy()¶
- Returns:
The DBus proxy.
- Return type:
This can be used to access the lower level API e.g. to listen to property changes. The object is not owned by the caller. Don’t unref it after use.
- Lfb.init(app_id)¶
- Parameters:
app_id (
str
) – The application id- Raises:
- Returns:
- Return type:
Initialize libfeedback. This must be called before any other of libfeedback’s functions.
- Lfb.is_initted()¶
-
Gets whether or not libfeedback is initialized.
- Lfb.set_feedback_profile(profile)¶
- Parameters:
profile (
str
) – The profile to set
Sets the active feedback profile to #profile. It is up to the feedback daemon to ignore this request. The new profile might not become active immediately. You can listen to changes
Lfb.GdbusFeedback
's ::profile property to get notified when it takes effect.
- Lfb.uninit()¶
Uninitialize the library when no longer used. Usually called on program shutdown.