Instance Property

contextName

Information about the host context in which the audio unit is connected, for display in the audio unit’s view.

Declaration

iOS, Mac Catalyst, tvOS
@property(copy, nonatomic) NSString *contextName;
macOS
@property(copy, atomic) NSString *contextName;

Discussion

For example—a host could set “track 3” as the context, so that the audio unit’s view could then display “My audio unit on track 3”.

This version 3 property is bridged to the version 2 kAudioUnitProperty_ContextName API.

See Also

Host Callbacks

musicalContextBlock

A callback to the host for musical context information.

transportStateBlock

A callback to the host for transport state information.