Callbacks

interface Callbacks(source)

Host-fragment-level callbacks invoked by mainCallback.

Inheritors

Functions

Link copied to clipboard
Link copied to clipboard
open fun exitedPipMode()
Link copied to clipboard
Link copied to clipboard
open fun isUIShowing(): Boolean

Returns whether the player UI (controls overlay) is currently visible.

Link copied to clipboard
open fun nextEpisode()
Link copied to clipboard
open fun nextMirror()
Link copied to clipboard
open fun onAutoHideUI()

Called when the auto-hide timer fires: UI is showing, no touch is active. Implement to hide the player controls.

Link copied to clipboard
open fun onBrightnessExtra(alpha: Float)

Called during brightness swipe with the current extra-brightness alpha (0–1).

Link copied to clipboard
open fun onDownload(event: DownloadEvent)
Link copied to clipboard
open fun onGestureEnd(hadSwipe: Boolean, wasUiShowing: Boolean)

Called at the end of each touch sequence.

Link copied to clipboard
open fun onHidePlayerUI()

Called when a swipe gesture begins; hide the player UI if desired.

Link copied to clipboard
open fun onHoldSpeedUp(show: Boolean)

Called when the hold-for-speedup gesture starts (show=true) or ends (show=false).

Link copied to clipboard
open fun onSeekPreviewText(text: String?)

Called with seek-preview text during a horizontal-swipe, or null to clear it.

Link copied to clipboard
open fun onSingleTap()

Called on a short single-tap on empty player area (no swipe, no double-tap).

Link copied to clipboard
open fun onTimestamp(timestamp: VideoSkipStamp?)
Link copied to clipboard
open fun onTimestampSkipped(timestamp: VideoSkipStamp)
Link copied to clipboard
open fun onTouchDown()

Called on a valid ACTION_DOWN; use for e.g. dismissing an episode overlay.

Link copied to clipboard
Link copied to clipboard
open fun playerDimensionsLoaded(width: Int, height: Int)
Link copied to clipboard
open fun playerError(exception: Throwable)
Link copied to clipboard
open fun playerPositionChanged(position: Long, duration: Long)
Link copied to clipboard
Link copied to clipboard
open fun playerUpdated(player: Any?)

Called after PlayerView finishes its own player-attached setup (MediaSession, ExoPlayer view).

Link copied to clipboard
open fun prevEpisode()
Link copied to clipboard
open fun subtitlesChanged()