SelectorControl
public class SelectorControl : AudioControl
A HAL audio selector control object
Remark
This class correponds to objects with base classkAudioSelectorControlClassID
-
Undocumented
Declaration
Swift
public override var debugDescription: String { get } -
Returns the selected items
Remark
This corresponds to the propertykAudioSelectorControlPropertyCurrentItemDeclaration
Swift
public func currentItem() throws -> [UInt32] -
Sets the selected items
Remark
This corresponds to the propertykAudioSelectorControlPropertyCurrentItemDeclaration
Swift
public func setCurrentItem(_ value: [UInt32]) throws -
Returns the available items
Remark
This corresponds to the propertykAudioSelectorControlPropertyAvailableItemsDeclaration
Swift
public func availableItems() throws -> [UInt32] -
Returns the name of
itemIDRemark
This corresponds to the propertykAudioSelectorControlPropertyItemNameDeclaration
Swift
public func nameOfItem(_ itemID: UInt32) throws -> String -
Returns the kind of
itemIDRemark
This corresponds to the propertykAudioSelectorControlPropertyItemKindDeclaration
Swift
public func kindOfItem(_ itemID: UInt32) throws -> UInt32 -
An item in a selector control
See moreDeclaration
-
Returns
trueifselfhasselectorDeclaration
Swift
public func hasSelector(_ selector: AudioObjectSelector<SelectorControl>) -> BoolParameters
selectorThe selector of the desired property
-
Returns
trueifselectoris settableThrows
An error ifselfdoes not have the requested propertyDeclaration
Swift
public func isSelectorSettable(_ selector: AudioObjectSelector<SelectorControl>) throws -> BoolParameters
selectorThe selector of the desired property
-
Registers
blockto be performed whenselectorchangesThrows
An error if the property listener could not be registeredDeclaration
Swift
public func whenSelectorChanges(_ selector: AudioObjectSelector<SelectorControl>, perform block: PropertyChangeNotificationBlock?) throwsParameters
selectorThe selector of the desired property
blockA closure to invoke when the property changes or
nilto remove the previous value
View on GitHub
SelectorControl Class Reference