-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add documentation for JavaClassWrapper and AndroidRuntime plugin #10979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add documentation for JavaClassWrapper and AndroidRuntime plugin #10979
Conversation
0e2a08f
to
72093ed
Compare
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
b11eb4c
to
79bb866
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The examples worked.
On my Samsung Tab, I had reduced the system vibration level, and after increasing it, the example worked as well.
- Analytics | ||
- Login | ||
- Ads | ||
- etc... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this list should be just part of the previous paragraph, to keep it shorter? "..diverse functionality, like push notifications, analytics, authentication, ads etc."? Or similar. Don't care strongly about this however.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also add a line about inner classes with an example.
You can use this example:
var version = JavaClassWrapper.wrap("android.os.Build$VERSION")
var sdk_int = version.SDK_INT
If sdk_int == 30:
# Do something specific on android 11 devices.
else:
# All other devices
52ead2f
to
a49ded3
Compare
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
a49ded3
to
1be5d1d
Compare
As the title mentions, this adds documentation for the
JavaClassWrapper
singleton and theAndroidRuntime
plugin.These capabilities were introduced in Godot 4.4, so the PR will need to be pick against the 4.4 documentation as well.