Class SwipeBackSupport

java.lang.Object
com.codename1.ui.util.SwipeBackSupport

public class SwipeBackSupport extends Object
Allows binding a swipe listener to the form that enables the user to swipe back to the previous form.
  • 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: the current form

      • destination: 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: 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: the current form

      • destination: the destination form which can be created lazily