toggleAsync

suspend fun toggleAsync(): Boolean?

Toggles between playing and paused states (suspend version).

Return

true if now playing, false if paused/stopped, null if no action taken