This is the Share module for Godot Engine (https://github.com/okamstudio/godot)
- Android only
- Share text
Drop the "share" directory inside the "modules" directory on the Godot source.
Recompile android export template (For documentation: http://docs.godotengine.org/en/latest/reference/compiling_for_android.html#compiling-export-templates).
In Example project goto Export > Target > Android:
Options:
Custom Package:
- place your apk from build
Permissions on:
- Access Network State
- Internet
To enable the module on Android, add the path to the module to the "modules" property on the [android] section of your engine.cfg file. It should look like this:
[android]
modules="org/godotengine/godot/GodotShare"
If you have more separate by comma.
The following methods are available:
# Share method
# @param String text The text to share with Intent (for example: "Hey check out my app at: https://play.google.com/store/apps/details?id=com.google.android.apps.plus")
share(text)
Based on the stackoverflow info:
MIT license