kohiiCanPause

open fun kohiiCanPause(): Boolean

Returns true if the library can automatically pause the Playback, false otherwise.

If this method returns true:

  • Once the user starts a Playback, it will not be paused until its container is not visible enough (controlled by Playback.Config.threshold), or user starts other Playback (priority overridden).

  • Once the user pauses a Playback, it will not be played until the user manually resumes it.

  • Once the user interacts so that the Playback's container is not visible enough, the library will pause the it.

  • Once the user interacts so that a paused Playback's container is visible enough, the library will: play it if it was not paused by the user, or pause it if it was paused by the user before (this is equal to doing nothing).

Default result is true.

Note: this value is ignored in 1.2.0 due to an in-completed behavior.