div-number-animator

Numeric value animator.

Parameters

Parameters Description
duration

int

Required parameter.

Animation duration in milliseconds.

Restriction for the value x: x >= 0.

Available platforms: Android.

end_value

number

Required parameter.

The value the variable will have when the animation ends.

Available platforms: Android.

id

string

Required parameter.

Animator ID.

Available platforms: Android.

type

string

Required parameter.

The value must always be number_animator.

Available platforms: Android.

variable_name

string

Required parameter.

Name of the variable being animated.

Available platforms: Android.

cancel_actions

array

Actions to be performed if the animator is canceled. For example, when a command with the type animator_stop is received.

Available platforms: Android.

direction

string

Animation direction. Determines whether the animation should be played forward, backward, or alternate between forward and backward.

Possible values: normal, reverse, alternate, alternate_reverse.

Default value: normal.

Available platforms: Android.

end_actions

array

Actions to be performed after the animator finishes.

Available platforms: Android.

interpolator

string

Animated value interpolation function.

Possible values: linear, ease, ease_in, ease_out, ease_in_out, spring.

Default value: linear.

Available platforms: Android.

repeat_count

object

Number of times the animation will repeat before stopping. A value of 0 enables infinite looping.

The value has the type div-count.

Default value: {"type": "fixed", "value": 1}.

Available platforms: Android.

List of possible values:

  • div-infinity-count
  • div-fixed-count
  • start_delay

    int

    Delay before the animation is launched in milliseconds.

    Restriction for the value x: x >= 0.

    Default value: 0.

    Available platforms: Android.

    start_value

    number

    The value the variable will have when the animation starts. If the property isn't specified, the current value of the variable will be used.

    Available platforms: Android.

    JSON
    {
      type*: "number_animator",
      cancel_actions: [
        {
          download_callbacks: {
            on_fail_actions: [ div-action, ... ],
            on_success_actions: [ div-action, ... ]
          },
          is_enabled: "bool_int",
          log_id*: "string",
          log_url: "string",
          menu_items: [
            {
              action: div-action,
              actions: [ div-action, ... ],
              text*: "string"
            },
            ...
          ],
          payload: "object",
          referer: "string",
          scope_id: "string",
          target: "string",
          typed: div-action-typed,
          url: "string"
        },
        ...
      ],
      direction: "string",
      duration*: "int",
      end_actions: [
        {
          download_callbacks: {
            on_fail_actions: [ div-action, ... ],
            on_success_actions: [ div-action, ... ]
          },
          is_enabled: "bool_int",
          log_id*: "string",
          log_url: "string",
          menu_items: [
            {
              action: div-action,
              actions: [ div-action, ... ],
              text*: "string"
            },
            ...
          ],
          payload: "object",
          referer: "string",
          scope_id: "string",
          target: "string",
          typed: div-action-typed,
          url: "string"
        },
        ...
      ],
      end_value*: "number",
      id*: "string",
      interpolator: "string",
      repeat_count: div-count,
      start_delay: "int",
      start_value: "number",
      variable_name*: "string"
    }