Annotation Interface CallOnUpdate


@Retention(RUNTIME) @Target(METHOD) public @interface CallOnUpdate
An annotation to mark that a method should be called when the bound model updates in a specific way. The method can have any access modifiers, i.e. it can be private.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Utility class that performs the wiring for CallOnUpdate annotations.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The model field name to bind to.
    What model update type to trigger on, or blank (default) for all updates.
  • Element Details

    • model

      String model
      The model field name to bind to. If this is left blank and the BindingContext has only a single BindableModel then it will bind to that.
      Default:
      ""
    • on

      String[] on
      What model update type to trigger on, or blank (default) for all updates.
      Default:
      {""}