public class SwipeBackSupport

  1. Object
  2. SwipeBackSupport
Allows binding a swipe listener to the form that enables the user to swipe back to the previous form.

Constructors

public SwipeBackSupport()

Methods

public static void bindBack(Form currentForm, LazyValue<Form> destination)Binds support for swiping to the given forms
public static void bindBack(LazyValue<Form> destination)Binds support for swiping to the current form
protected void bind(Form currentForm, LazyValue<Form> destination)Binds support for swiping to the given forms

Inherited methods

Constructor details

SwipeBackSupport

public SwipeBackSupport()

Method details

bindBack

public static void bindBack(Form currentForm, LazyValue<Form> destination)
Binds support for swiping to the given forms

Parameters

currentForm Form
the current form
destination LazyValue<Form>
the destination form which can be created lazily

bindBack

public static void bindBack(LazyValue<Form> destination)
Binds support for swiping to the current form

Parameters

destination LazyValue<Form>
the destination form which can be created lazily

bind

protected void bind(Form currentForm, LazyValue<Form> destination)
Binds support for swiping to the given forms

Parameters

currentForm Form
the current form
destination LazyValue<Form>
the destination form which can be created lazily