Skip to content

Commit 2ad3f18

Browse files
committed
feat(android): added activity parameter in case of oauth2
1 parent 13aed7c commit 2ad3f18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/android/docs/kotlin/example.md.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class MainActivity : AppCompatActivity() {
2525
GlobalScope.launch {
2626
{% if method.type == 'webAuth' %} {% elseif method.type == 'location' %} val result = {% else %} val response = {% endif %}{{ service.name | caseCamel }}.{{ method.name | caseCamel }}({% if method.parameters.all | length == 0 %}){% endif %}
2727

28+
{% if method.type == "webAuth" %}
29+
activity = this@MainActivity,
30+
{% endif %}
2831
{% for parameter in method.parameters.all %}
2932
{% if parameter.required %}
3033
{{parameter.name}} = {{ parameter | paramExample }}{% if not loop.last %},{% endif %}

0 commit comments

Comments
 (0)