onDismiss
Parameters
onDismiss
Optional callback invoked once when the person dismisses the collapsed mini player (by swiping it down or triggering the accessibility dismiss action). Dismissal requests the host to stop playback and clear its active player state (for example, stopAndClearMix()); the Toolkit does not stop media or own the host's playback state. When null, downward drags on the collapsed mini player do not dismiss it.