failWithError

abstract fun failWithError(error: PlaybackError): suspend () -> PlaybackState.Error

Transitions into an Error state

Return

a method for transitioning into an Error state

Parameters

error

the PlaybackError that occurred