setOnCompletionListener

abstract fun setOnCompletionListener(listener: () -> Unit)

Register a callback to be invoked when the end of a media source has been reached during playback.

Parameters

listener

the callback that will be run