diff options
author | Cagdas <cagdascaglak@gmail.com> | 2019-10-06 21:17:44 +0300 |
---|---|---|
committer | Cagdas <cagdascaglak@gmail.com> | 2019-10-22 22:52:13 +0300 |
commit | 008838555620261b25a4df7a814cc789ec4a4ad3 (patch) | |
tree | 364c9224a2e301039300a4c7f6fa07af609c0f48 /platform/android/os_android.cpp | |
parent | 9f28803927330654cdb09f48467b481c85209ea8 (diff) |
Add request permission automatically at android
Diffstat (limited to 'platform/android/os_android.cpp')
-rw-r--r-- | platform/android/os_android.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index 91bd6cbdd2..defee8f1f1 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -220,6 +220,16 @@ bool OS_Android::request_permission(const String &p_name) { return godot_java->request_permission(p_name); } +bool OS_Android::request_permissions() { + + return godot_java->request_permissions(); +} + +Vector<String> OS_Android::get_granted_permissions() const { + + return godot_java->get_granted_permissions(); +} + Error OS_Android::open_dynamic_library(const String p_path, void *&p_library_handle, bool p_also_set_library_path) { p_library_handle = dlopen(p_path.utf8().get_data(), RTLD_NOW); ERR_FAIL_COND_V_MSG(!p_library_handle, ERR_CANT_OPEN, "Can't open dynamic library: " + p_path + ", error: " + dlerror() + "."); |