This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
ShowTextDialog
JS
Py
Hello World
Shows a text input dialog with a title to allow the user to input some text.
app.ShowTextDialog(
title
,
default?
,
callback?
)
Example - Input Name
click to expand contents
function
OnStart
(
)
{
app
.
ShowTextDialog
(
"Type your Name:"
,
""
,
OnInputName
)
;
}
function
OnInputName
(
name
)
{
app
.
ShowPopup
(
"Your name is "
+
name
)
;
}
from
native
import
app
def
OnStart
(
)
:
app
.
ShowTextDialog
(
"Type your Name:"
,
""
,
OnInputName
)
def
OnInputName
(
name
)
:
app
.
ShowPopup
(
"Your name is "
+
name
)
Copy
Copy All
Run
String
function
(
text
)
loading