mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 10:27:46 +02:00
3.4 KiB
3.4 KiB
Modules
{% for item in site.data.api %}
{{ item.name }}
{{ item.desc }} {% endfor %}
Enums
{% for module in site.data.api %} {% for item in module.members %} {% if item.type contains 'number' %} {% endif %}
{% endfor %}
{% endfor %}
{{ module.name }}.{{ item.name }} | {{ item.desc | markdownify | replace: "[icon:attention]"," ⚠️"}} |
Functions
{% for module in site.data.api %} {% for item in module.members %} {% if item.type contains 'function' %} {% endif %} {% endfor %} {% endfor %}{{ module.name }}.{{ item.name }}() | {{ item.desc | truncate: 80 }} |
{% for module in site.data.api %} {% for function in module.members %} {% if function.type contains 'function' %}
{{ module.name }}.{{ function.name }}({% for param in function.parameters %}{{param.name}}{% unless forloop.last %}, {% endunless %}{% endfor %})
{% if function.parameters %}
{% for param in function.parameters %}
{% endfor %}
Parameter | Type | Description |
---|---|---|
{{ param.name }} {% if param.optional %} (optional) {% endif %} | {{ param.type }} |
{{ param.desc | markdownify }} {% if param.type == "function" %} {% include type-function.md params=param.parameters %} {% endif %} {% if param.type == "table" %} {% include type-table.md fields=param.members %} {% endif %} |
Returns
{% for return in function.returns %} {% endfor %}Return value | Type | Description |
---|---|---|
{{ return.name }} | {{ return.type }} |
{{ return.desc | markdownify }} |
⚠️" | replace: "[type:string]","
string
" | replace: "[type:number]","number
" | replace: "[type:table]","table
" | markdownify}}
{% if function.examples %}
Examples
{% for example in function.examples %} {{ example.desc | markdownify }} {% endfor %} {% endif %} {% endif %}
{% endfor %}
{% endfor %}