Skip to content

AndroidBrowserTransition

Enter and exit animation pair used when opening or closing the in-app browser.

Kodster.InAppWebBrowser.Android.AndroidBrowserTransition

Constructor

public AndroidBrowserTransition(
    AndroidBrowserTransition.Animation enterAnimation,
    AndroidBrowserTransition.Animation exitAnimation
)

Creates a transition with explicit enter and exit animations.

Parameters

  • enterAnimation (AndroidBrowserTransition.Animation):
    • Open transition: the animation played as the browser enters the screen.
    • Close transition: the animation played as app re-enters the screen.
  • exitAnimation (AndroidBrowserTransition.Animation):
    • Open transition: the animation played as app exits the screen.
    • Close transition: the animation played as the browser exits the screen.

Static Presets

Fade

public static readonly AndroidBrowserTransition Fade;

A fade-in / fade-out transition.

HorizontalSlide

public static readonly AndroidBrowserTransition HorizontalSlide;

A horizontal slide transition: enters from the left, exits to the right.

VerticalSlide

public static readonly AndroidBrowserTransition VerticalSlide;

A vertical slide transition: enters from the bottom, exits downward.

Properties

EnterAnimation

public AndroidBrowserTransition.Animation EnterAnimation { get; }

Animation played as the browser or host app enters the screen, depending on transition direction.

ExitAnimation

public AndroidBrowserTransition.Animation ExitAnimation { get; }

Animation played as the browser or host app exits the screen, depending on transition direction.

Nested Types

Animation

public enum AndroidBrowserTransition.Animation

Animation styles available for browser open and close transitions.

Value Description
FadeIn Fade in from transparent to opaque.
FadeOut Fade out from opaque to transparent.
SlideInLeft Slide in from the left edge of the screen.
SlideOutRight Slide out toward the right edge of the screen.
SlideInUp Slide in from the bottom edge of the screen.
SlideOutDown Slide out toward the bottom edge of the screen.