Skip to content

Latest commit

 

History

History
109 lines (68 loc) · 1.53 KB

EventProtocol.md

File metadata and controls

109 lines (68 loc) · 1.53 KB

EventProtocol

This file concludes a list of known events used with the EventHandler

blurall

Will be send if auto_hide activates

{
    "blur": [true/false]
}

skip_image

Skips the current background image, also unlockes the current lock state

{ }

settings_window_state

Will be send to open/close the settings panel

{
    "opened": [true/false]
}

import_window_state

Will be send to open/close the import settings window

{
    "opened": [true/false]
}

export_window_state

Wil be send to open/close the import settings window

{
    "opened": [true/false]
}

url_add_window_state

Is being send when user clicks on "+" (Add Image) (Settings -> Playlists, last element)

{
    "opened": [true, false]
}

full_screen_image_window_state

Is being send when user clicks on the fullscreen icon on any image (Settings -> Playlists)

{
    "url": "none if the window should close else the url of the image to display"
}

playlist_refresh

If the Image Playlist needs to be refreshed (e.g. when a new image gets added)

No Data

select_image

If a specific image should be selected (e.g. when clicking on an image in the playlist settings view)

{
    "idx": "the new index of the image being seleceted"
}

set.<id>

If an option entry gets updated via Settings class, this will be called

{
    "value": "new value",
    "sender": "optional, to avoid circular events"
}