PipBehavior class

Lifecycle and interaction behaviour.

Constructors

PipBehavior({bool tapExpands = true, bool startExpanded = false, PipOnMediaEnd onMediaEnd = PipOnMediaEnd.loop, Duration? autoDismissAfter, bool reshowOnReturn = false, bool pauseWhenObscured = false})
const
PipBehavior.fromJson(Map<String, dynamic>? json)
factory

Properties

autoDismissAfter Duration?
Collapsed-state timeout; null = never. The timer stops while expanded.
final
hashCode int
The hash code for this object.
no setterinherited
onMediaEnd PipOnMediaEnd
final
pauseWhenObscured bool
Pause playback while a modal covers the window. Off by default: most campaigns want playback to keep going underneath a brief overlay rather than lose its place. Neither dashboard-editable nor SDK-defaulted to true any more — see pip-properties.md §7.1/§8 for the history.
final
reshowOnReturn bool
Whether returning to the same screen shows it again.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startExpanded bool
final
tapExpands bool
True when tapping the collapsed window opens full screen (the default and the point of the format). False means the tap runs a plain action, which degenerates the PiP into a floating banner.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited