Skip to content

AnimationContextLeave

interludesoftware.tick

Interlude.Tick

AnimationContextLeave Class

public class AnimationContextLeave : Interlude.Tick.AnimationContextEventBase

Inheritance System.ObjectAnimationContextEventBase → AnimationContextLeave

Constructors

AnimationContextLeave(AnimationContext) Constructor

Initializes a new instance of AnimationContextLeave with the specified parent context and active state.

public AnimationContextLeave(Interlude.Tick.AnimationContext context);

Parameters

context AnimationContext

The parent AnimationContext.

Methods

AnimationContextLeave.GetTimeSince(InteractivityState) Method

Seconds elapsed in scaled time since the hover leave was recorded. Returns System.Single.MaxValue when the leave has not yet occurred so leave animations are not shown before any interaction.

public override float GetTimeSince(Interlude.Tick.InteractivityState state);

Parameters

state Interlude.Tick.InteractivityState

Returns

System.Single

AnimationContextLeave.GetUnscaledTimeSince(InteractivityState) Method

Seconds elapsed in unscaled time since the hover leave was recorded. Returns System.Single.MaxValue when the leave has not yet occurred so leave animations are not shown before any interaction.

public override float GetUnscaledTimeSince(Interlude.Tick.InteractivityState state);

Parameters

state Interlude.Tick.InteractivityState

Returns

System.Single