mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
ee12cd4b4d
commit_hash:1549bd01f40360f820353cecb97414026573b7bb
216 lines
4.4 KiB
JSON
216 lines
4.4 KiB
JSON
{
|
|
"signatures": [
|
|
{
|
|
"function_name": "getArray",
|
|
"is_method": true,
|
|
"doc": "Returns an array value from array by position.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"doc": "Position in array."
|
|
}
|
|
],
|
|
"result_type": "array",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "getBoolean",
|
|
"is_method": true,
|
|
"doc": "Returns a boolean value from array by position.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"doc": "Position in array."
|
|
}
|
|
],
|
|
"result_type": "boolean",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "getColor",
|
|
"is_method": true,
|
|
"doc": "Returns a color value from array by position.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"doc": "Position in array."
|
|
}
|
|
],
|
|
"result_type": "color",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "getDict",
|
|
"is_method": true,
|
|
"doc": "Returns a dict value from array by position.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"doc": "Position in array."
|
|
}
|
|
],
|
|
"result_type": "dict",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "getInteger",
|
|
"is_method": true,
|
|
"doc": "Returns an integer value from array by position.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"doc": "Position in array."
|
|
}
|
|
],
|
|
"result_type": "integer",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "getNumber",
|
|
"is_method": true,
|
|
"doc": "Returns a number value from array by position.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"doc": "Position in array."
|
|
}
|
|
],
|
|
"result_type": "number",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "getString",
|
|
"is_method": true,
|
|
"doc": "Returns a string value from array by position.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"doc": "Position in array."
|
|
}
|
|
],
|
|
"result_type": "string",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "getUrl",
|
|
"is_method": true,
|
|
"doc": "Returns a url value from array by position.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"doc": "Position in array."
|
|
}
|
|
],
|
|
"result_type": "url",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "isEmpty",
|
|
"is_method": true,
|
|
"doc": "The method returns boolean true if array is empty else false.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
}
|
|
],
|
|
"result_type": "boolean",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"function_name": "filter",
|
|
"is_method": true,
|
|
"doc": "Returns filtered array by calling boolean function to each element of array.",
|
|
"arguments": [
|
|
{
|
|
"type": "array",
|
|
"doc": "Array."
|
|
},
|
|
{
|
|
"type": "function",
|
|
"doc": "Accepts each element of array, returns bool."
|
|
}
|
|
],
|
|
"result_type": "array",
|
|
"platforms": []
|
|
}
|
|
]
|
|
}
|