moosync_edk::api

Trait ContextMenu

Source
pub trait ContextMenu {
    // Provided methods
    fn get_song_context_menu(
        &self,
        songs: Vec<Song>,
    ) -> MoosyncResult<Vec<ContextMenuReturnType>> { ... }
    fn get_playlist_context_menu(
        &self,
        playlist: QueryablePlaylist,
    ) -> MoosyncResult<Vec<ContextMenuReturnType>> { ... }
    fn on_context_menu_action(&self, action: String) -> MoosyncResult<()> { ... }
}
Expand description

Trait for handling context menu-related events.

Provided Methods§

Source

fn get_song_context_menu( &self, songs: Vec<Song>, ) -> MoosyncResult<Vec<ContextMenuReturnType>>

Called when the main app requests the context menu for songs.

Source

fn get_playlist_context_menu( &self, playlist: QueryablePlaylist, ) -> MoosyncResult<Vec<ContextMenuReturnType>>

Called when the main app requests the context menu for a playlist.

Source

fn on_context_menu_action(&self, action: String) -> MoosyncResult<()>

Called when the main app performs an action from the context menu.

Implementors§