8 #ifndef META_OCEAN_PLATFORM_ANDROID_UTILITIES_H
9 #define META_OCEAN_PLATFORM_ANDROID_UTILITIES_H
36 static std::string
toAString(JNIEnv* env, jstring javaString);
44 static jstring
toJavaString(JNIEnv* env,
const std::string& stdString);
52 static jobjectArray
toJavaStringArray(JNIEnv* env,
const std::vector<std::string>& strings);
61 static bool toVector(JNIEnv* env, jobject javaStringList, std::vector<std::string>& strings);
70 static bool toVector(JNIEnv* env, jobject javaIntegerList, std::vector<int>& values);
79 static bool className(JNIEnv* env, jobject
object, std::string& name);
89 static bool manifestVersion(JavaVM* javaVM, jobject activity,
int& versionCode, std::string& versionName);
110 static bool manifestSdkVersions(JNIEnv* env, jobject activity,
unsigned int& minSdkVersion,
unsigned int& targetSdkVersion);
160 static bool sendIntentToComponent(JNIEnv* env, jobject activity,
const std::string& packageName,
const std::string& className,
const std::string& extraText);
169 static bool startActivity(JNIEnv* env, jobject rootActivity,
const std::string& activityClassName);
180 static bool connectToWifi(JNIEnv* env, jobject activity,
const std::string& ssid,
const std::string& password);
218 static bool triggerVibration(JNIEnv* env, jobject activity,
unsigned int intensity = 1u,
const unsigned int duration = 50u);
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15