classes/class_javaclasswrapper #299
Replies: 1 comment
-
to show toast: func _ready() -> void:
var android_runtime = Engine.get_singleton("AndroidRuntime")
var activity = android_runtime.getActivity()
var toast_callable = func ():
var ToastClass = JavaClassWrapper.wrap("android.widget.Toast")
ToastClass.makeText(activity, "This is a test Toast", 0).show()
activity.runOnUiThread(android_runtime.createRunnableFromGodotCallable(toast_callable)) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
classes/class_javaclasswrapper
Inherits: Object Provides access to the Java Native Interface. Description: The JavaClassWrapper singleton provides a way for the Godot application to send and receive data through the Java Native ...
https://docs.godotengine.org/en/latest/classes/class_javaclasswrapper.html
Beta Was this translation helpful? Give feedback.
All reactions