div-visibility-action
Actions performed when an element becomes visible.
Parameters
Parameters | Description |
---|---|
log_id |
string Required parameter. Logging ID. Available platforms: Android, iOS, web. |
download_callbacks |
object Callbacks that are called after data loading. The value has the type Available platforms: Android, iOS, web. |
is_enabled |
bool_int The parameter disables the action. Disabled actions stop listening to their associated event (clicks, changes in visibility, and so on). Default value: Available platforms: Android, iOS, web. |
log_limit |
int Limit on the number of loggings. If Restriction for the value Default value: Available platforms: Android, iOS, web. |
payload |
object Additional parameters, passed to the host application. Available platforms: Android, iOS, web. |
referer |
string Referer URL for logging. The value must be a valid URL. Available platforms: Android, iOS. |
scope_id |
string The ID of the element within which the specified action will be performed. Available platforms: Android, iOS, web. |
typed |
object The value has the type Available platforms: Android, iOS, web. List of possible values: |
url |
string URL. Possible values: The value must be a valid URL. Available platforms: Android, iOS, web. |
visibility_duration |
int Time in milliseconds during which an element must be visible to trigger Restriction for the value Default value: Available platforms: Android, iOS, web. |
visibility_percentage |
int Percentage of the visible part of an element that triggers Restriction for the value Default value: Available platforms: Android, iOS, web. |
JSON
{
download_callbacks: {
on_fail_actions: [
{
download_callbacks: div-download-callbacks,
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"
},
...
],
on_success_actions: [
{
download_callbacks: div-download-callbacks,
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"
},
...
]
},
is_enabled: "bool_int",
log_id*: "string",
log_limit: "int",
payload: "object",
referer: "string",
scope_id: "string",
typed: div-action-typed,
url: "string",
visibility_duration: "int",
visibility_percentage: "int"
}