Snapd.NoticesMonitor¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
w/co |
|
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Class Details¶
- class Snapd.NoticesMonitor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Snapd.NoticesMonitorallows to receive in real time events from snapd, like status changes in an ongoing refresh, inhibited refreshes due to the snap being active, or inhibited launches due to an ongoing refresh.New in version 1.66.
- classmethod new()¶
- Returns:
a new
Snapd.NoticesMonitor- Return type:
Creates a new
Snapd.NoticesMonitorto receive events.New in version 1.66.
- classmethod new_with_client(client)¶
- Parameters:
client (
Snapd.Client) – aSnapd.Clientobject- Returns:
a new
Snapd.NoticesMonitor- Return type:
Creates a new
Snapd.NoticesMonitorto receive events, using the specifiedSnapd.Clientobject to ask info about each task.New in version 1.66.
- start()¶
- Raises:
- Returns:
Falseif there was an error,Trueif everything worked fine and the object is listening for events.- Return type:
Starts the asynchronous listening proccess, that will wait for new notices and emit a “notice-event” signal with the new notice as parameter.
New in version 1.66.
- stop()¶
-
Stops the asynchronous listening proccess started with
Snapd.NoticesMonitor.start.New in version 1.66.
Signal Details¶
- Snapd.NoticesMonitor.signals.error_event(notices_monitor, object)¶
- Signal Name:
error-event- Flags:
- Parameters:
notices_monitor (
Snapd.NoticesMonitor) – The object which received the signalobject (
GLib.Error) –
- Snapd.NoticesMonitor.signals.notice_event(notices_monitor, object, p0)¶
- Signal Name:
notice-event- Flags:
- Parameters:
notices_monitor (
Snapd.NoticesMonitor) – The object which received the signalobject (
Snapd.Notice) –p0 (
bool) –
Property Details¶
- Snapd.NoticesMonitor.props.client¶
- Name:
client- Type:
- Default Value:
- Flags:
Snapd.Clientto use to communicate