Tags
public protocol Tags : AnyObject
Protocol for activity involving sound font tags.
-
True if the tags collection has been restored
Declaration
Swift
var restored: Bool { get } -
True if there are no tags in the collection
Declaration
Swift
var isEmpty: Bool { get } -
The number of tags in the collection
Declaration
Swift
var count: Int { get } -
Get the tag at a given index.
Declaration
Swift
func getBy(index: Int) -> LegacyTagParameters
indexthe index to fetch
-
Add a tag to the collection.
Declaration
Swift
func append(_ tag: LegacyTag) -> IntParameters
tagthe tag to add
Return Value
index of the new tag
-
Remove the tag at the given index.
Declaration
Swift
@discardableResult func remove(at index: Int) -> LegacyTagParameters
indexthe index to remove
Return Value
tag that was removed
-
Rename a tag.
Declaration
Swift
func rename(_ index: Int, name: String)Parameters
indexthe index of the tag to rename
namethe new name to use
-
Insert a tag at the given index
Declaration
Swift
func insert(_ tag: LegacyTag, at index: Int)Parameters
tagthe tag to insert
indexthe location to insert it
-
Allow subscriptions for tag collection changes.
Declaration
Swift
@discardableResult func subscribe<O: AnyObject>(_ subscriber: O, notifier: @escaping (TagsEvent) -> Void) -> SubscriberTokenParameters
subscriberthe object that is subscribing
notifierthe function or closure to invoke when an even takes place
Return Value
token that identifies the subscription and can be used to unsubscribe
-
Undocumented
Declaration
Swift
func validate()
View on GitHub
Tags Protocol Reference