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§
Called when the main app requests the context menu for songs.
Called when the main app requests the context menu for a playlist.
Called when the main app performs an action from the context menu.