LegacyFavoritesManager
final class LegacyFavoritesManager : SubscriptionManager<FavoritesEvent>
extension LegacyFavoritesManager: Favorites
Manages the collection of Favorite instances created by the user. Changes to the collection are saved, and they will be restored when the app relaunches.
-
Declaration
Swift
var restored: Bool { get }
-
Undocumented
Declaration
Swift
var collection: LegacyFavoriteCollection { get }
-
Undocumented
Declaration
Swift
init(_ consolidatedConfigFile: ConsolidatedConfigFile)
-
Declaration
Swift
var count: Int { get }
-
Declaration
Swift
func contains(key: LegacyFavorite.Key) -> Bool
-
Declaration
Swift
func index(of key: LegacyFavorite.Key) -> Int
-
Declaration
Swift
func getBy(index: Int) -> LegacyFavorite
-
Declaration
Swift
func getBy(key: LegacyFavorite.Key) -> LegacyFavorite
-
Declaration
Swift
func add(favorite: LegacyFavorite)
-
Declaration
Swift
func update(index: Int, config: PresetConfig)
-
Declaration
Swift
func beginEdit(config: FavoriteEditor.Config)
-
Declaration
Swift
func move(from: Int, to: Int)
-
Declaration
Swift
func selected(index: Int)
-
Declaration
Swift
func remove(key: LegacyFavorite.Key)
-
Declaration
Swift
func removeAll(associatedWith soundFont: LegacySoundFont)
-
Declaration
Swift
func count(associatedWith soundFont: LegacySoundFont) -> Int
-
Declaration
Swift
func setVisibility(key: LegacyFavorite.Key, state isVisible: Bool)
-
Declaration
Swift
func setEffects(favorite: LegacyFavorite, delay: DelayConfig?, reverb: ReverbConfig?)
-
Undocumented
Declaration
Swift
func validate(_ soundFonts: SoundFonts)
-
Undocumented
Declaration
Swift
static var defaultCollection: LegacyFavoriteCollection { get }