Skip to content

Instance Method

outputActivityIndicator(to:state:)

Draws / renders this ActivityIndicatorType to the Console for the supplied ActivityIndicatorState.
func outputActivityIndicator(to console: any Console, state: ActivityIndicatorState)

Parameters

console

Console to output this indicator to.

state

State to draw the indicator in, e.g., active, failed.

Discussion

This method will be called by the ActivityIndicator. The Console will have any previous output cleared between calls to this method using the ephemeral push/pop methods.

Default Implementations

ActivityIndicatorType Implementations