div-data

Root structure.

Parameters

Parameters Description
log_id

string

Required parameter.

Logging ID.

states

array

Required parameter.

A set of visual element states. Each element can have a few states with a different layout. The states are displayed strictly one by one and switched using action.

An array must not be empty.

timers

array

List of timers.

transition_animation_selector

string

Parameter is deprecated.

Events that trigger transition animations.

Possible values: none, data_change, state_change, any_change.

Default value: none.

Available platforms: Android, iOS.

variable_triggers

array

Triggers for changing variables.

variables

array

Declaration of variables that can be used in an element.

List of possible values:

  • string_variable
  • number_variable
  • integer_variable
  • boolean_variable
  • color_variable
  • url_variable
  • dict_variable
  • array_variable
  • state

    Parameters Description
    div

    object

    Required parameter.

    Contents.

    The value has the type div.

    List of possible values:

  • div-image
  • div-gif-image
  • div-text
  • div-separator
  • div-container
  • div-grid
  • div-gallery
  • div-pager
  • div-tabs
  • div-state
  • div-custom
  • div-indicator
  • div-slider
  • div-switch
  • div-input
  • div-select
  • div-video
  • state_id

    int

    Required parameter.

    State ID.

    JSON
    {
      log_id*: "string",
      states*: [
        {
          div*: div,
          state_id*: "int"
        },
        ...
      ],
      timers: [
        {
          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"
            },
            ...
          ],
          id*: "string",
          tick_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"
            },
            ...
          ],
          tick_interval: "int",
          value_variable: "string"
        },
        ...
      ],
      transition_animation_selector: "string",
      variable_triggers: [
        {
          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"
            },
            ...
          ],
          condition*: "bool_int",
          mode: "string"
        },
        ...
      ],
      variables: [ div-variable, ... ]
    }
    
    Previous