resetProgress

fun resetProgress(progress: Progress = initialProgress, notifyListeners: Boolean = false)

Resets progress and progress history to the provided progress.

Parameters

progress

a Progress to set. Defaults to the provided initial progress value.

notifyListeners

whether to notify listeners (including Session.progress flow) with the newly set progress. false by default.