PedalPi - Application - Component

Component

class application.component.component.Component(application)[source]
__weakref__

list of weak references to the object (if defined)

init()[source]

Initialize this component

register_observer(observer)[source]

Register an observer in Application by NotificationController. Observers will be notified of the changes requested in the application API.

Obs: If a observer contains a _token_ and the request informs the same _token_ the observer not will be notified.

Parameters:observer (UpdatesObserver) –
unregister_observer(observer)[source]

Unregister an observer in Application by NotificationController. The observer not will be more notified of the changes requested in the application API.

Parameters:observer (UpdatesObserver) –

ApplicationObserver