Prism Session
open class PrismSession(val context: Context, val lifecycleOwner: LifecycleOwner, val captureSession: CaptureSessionInterface, val configuration: PrismSessionConfiguration = PrismSessionConfiguration(), val audioPlayer: AudioPlayerInterface = AudioPlayer(context), val speechSynthesizer: SpeechSynthesizerInterface = SpeechSynthesizer(context), dispatcher: CoroutineDispatcher = Dispatchers.Main)
A PrismSession is a container for all the state and configuration for a single session. It is responsible for managing the state of the session and the audio player, and all of the future state managers.
Parameters
context
The context that the CaptureSession is running in
configuration
The configuration for the PrismSession
Constructors
Link copied to clipboard
constructor(context: Context, lifecycleOwner: LifecycleOwner, captureSession: CaptureSessionInterface, configuration: PrismSessionConfiguration = PrismSessionConfiguration(), audioPlayer: AudioPlayerInterface = AudioPlayer(context), speechSynthesizer: SpeechSynthesizerInterface = SpeechSynthesizer(context), dispatcher: CoroutineDispatcher = Dispatchers.Main)