IMovaRecoveryPolicy class abstract

Decides how to recover from a playback failure. The playback-side twin of IMovaAdFailPolicy: pure and injectable, so hosts with their own retry budgets replace it wholesale.

判定如何从一次播放失败中恢复。是播放侧的 IMovaAdFailPolicy:纯粹、可注入, 有自己重试预算的宿主可以整体替换。

Example / 示例:

class GiveUpFast implements IMovaRecoveryPolicy {
  @override
  MovaRecoveryDecision onFailure(MovaPlayFail fail) => const MovaRecoveryDecision.giveUp();
}
Implementers

Constructors

IMovaRecoveryPolicy()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFailure(MovaPlayFail fail) → MovaRecoveryDecision
Answers what to do about fail.
toString() → String
A string representation of this object.
inherited

Operators

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