Lfb.GdbusFeedbackHaptic¶
- Implementations:
Lfb.GdbusFeedbackHapticProxy,Lfb.GdbusFeedbackHapticSkeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
|
Properties¶
None
Signals¶
Name |
Short Description |
|---|---|
Signal emitted when a remote caller is invoking the ‘Vibrate() [gdbus-method-org-sigxcpu-Feedback-Haptic.Vibrate]’ D-Bus method. |
Fields¶
None
Class Details¶
- class Lfb.GdbusFeedbackHaptic¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface ‘org.sigxcpu.Feedback.Haptic [gdbus-interface-org-sigxcpu-Feedback-Haptic.top_of_page]’.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo. Do not free.- Return type:
Gets a machine-readable description of the ‘org.sigxcpu.Feedback.Haptic [gdbus-interface-org-sigxcpu-Feedback-Haptic.top_of_page]’ D-Bus interface.
- classmethod override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass) – The class structure for aGObject.Objectderived 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.Objectproperties in theLfb.GdbusFeedbackHapticinterface for a concrete class. The properties are overridden in the order they are defined.
- call_vibrate(arg_app_id, arg_pattern, cancellable, callback, *user_data)¶
- Parameters:
arg_app_id (
str) – Argument to pass with the method invocation.arg_pattern (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the ‘Vibrate() [gdbus-method-org-sigxcpu-Feedback-Haptic.Vibrate]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callLfb.GdbusFeedbackHaptic.call_vibrate_finish() to get the result of the operation.See
Lfb.GdbusFeedbackHaptic.call_vibrate_sync() for the synchronous, blocking version of this method.
- call_vibrate_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toLfb.GdbusFeedbackHaptic.call_vibrate().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_success:
Return location for return parameter or
Noneto ignore.
- Return type:
Finishes an operation started with
Lfb.GdbusFeedbackHaptic.call_vibrate().
- call_vibrate_sync(arg_app_id, arg_pattern, cancellable)¶
- Parameters:
arg_app_id (
str) – Argument to pass with the method invocation.arg_pattern (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_success:
Return location for return parameter or
Noneto ignore.
- Return type:
Synchronously invokes the ‘Vibrate() [gdbus-method-org-sigxcpu-Feedback-Haptic.Vibrate]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
Lfb.GdbusFeedbackHaptic.call_vibrate() for the asynchronous version of this method.
- complete_vibrate(invocation, success)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.success (
bool) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the ‘Vibrate() [gdbus-method-org-sigxcpu-Feedback-Haptic.Vibrate]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- do_handle_vibrate(invocation, arg_app_id, arg_pattern) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_app_id (
str) –arg_pattern (
GLib.Variant) –
- Return type:
Handler for the
Lfb.GdbusFeedbackHaptic::handle-vibratesignal.
Signal Details¶
- Lfb.GdbusFeedbackHaptic.signals.handle_vibrate(gdbus_feedback_haptic, invocation, arg_app_id, arg_pattern)¶
- Signal Name:
handle-vibrate- Flags:
- Parameters:
gdbus_feedback_haptic (
Lfb.GdbusFeedbackHaptic) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_app_id (
str) – Argument passed by remote caller.arg_pattern (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Vibrate() [gdbus-method-org-sigxcpu-Feedback-Haptic.Vibrate]’ D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callLfb.GdbusFeedbackHaptic.complete_vibrate() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.