FavoritesEvent
public enum FavoritesEvent
The different events which are emitted by a Favorites collection when the collection changes.
-
A new favorite has been added
Declaration
Swift
case added(index: Int, favorite: LegacyFavorite)
-
A favorite has been selected
Declaration
Swift
case selected(index: Int, favorite: LegacyFavorite)
-
A favorite will be edited
Declaration
Swift
case beginEdit(config: FavoriteEditor.Config)
-
A favorite has changed
Declaration
Swift
case changed(index: Int, favorite: LegacyFavorite)
-
A favorite has been removed
Declaration
Swift
case removed(index: Int, favorite: LegacyFavorite)
-
All favorites that were associated with a sound font have been removed
Declaration
Swift
case removedAll(associatedWith: LegacySoundFont)
-
The collection of favorites has been restored from disk
Declaration
Swift
case restored
-
Obtain the favorite instance that is associated with an event, if there is one.
Declaration
Swift
var favorite: LegacyFavorite? { get }