LegacyFavoriteCollection
final public class LegacyFavoriteCollection : Codable
extension LegacyFavoriteCollection: CustomStringConvertible
Collection of Favorite instances created by the user.
-
Number of favorites defined
Declaration
Swift
var count: Int { get } -
Undocumented
Declaration
Swift
init() -
Undocumented
Declaration
Swift
func contains(key: LegacyFavorite.Key) -> Bool -
Undocumented
Declaration
Swift
func index(of key: LegacyFavorite.Key) -> Int -
Obtain the favorite at the given index.
Declaration
Swift
func getBy(index: Int) -> LegacyFavoriteParameters
indexthe index to use
Return Value
the favorite instance
-
Obtain the favorite by its key.
Declaration
Swift
func getBy(key: LegacyFavorite.Key) -> LegacyFavoriteParameters
keythe key to look for
Return Value
the optional favorite instance
-
Add a favorite to the end of the collection.
Declaration
Swift
func add(favorite: LegacyFavorite)Parameters
favoritethe new favorite to add
-
Replace an existing entry with a new value.
Declaration
Swift
func replace(index: Int, with favorite: LegacyFavorite)Parameters
indexthe location to replace
favoritethe new value to store
-
Undocumented
Declaration
Swift
func move(from: Int, to: Int) -
Undocumented
Declaration
Swift
func remove(key: LegacyFavorite.Key) -> LegacyFavorite -
Undocumented
Declaration
Swift
func remove(at index: Int) -> LegacyFavorite -
Undocumented
Declaration
Swift
func removeAll(associatedWith soundFontKey: LegacySoundFont.Key) -
Undocumented
Declaration
Swift
func count(associatedWith soundFontKey: LegacySoundFont.Key) -> Int -
Declaration
Swift
public var description: String { get }
View on GitHub
LegacyFavoriteCollection Class Reference