| 978 | } |
| 979 | |
| 980 | jobjectArray CallbackHandlers::GetJavaStringArray(JEnv &env, int length) { |
| 981 | if (length > CallbackHandlers::MAX_JAVA_STRING_ARRAY_LENGTH) { |
| 982 | stringstream ss; |
| 983 | ss << "You are trying to override more methods than the limit of " |
| 984 | << CallbackHandlers::MAX_JAVA_STRING_ARRAY_LENGTH; |
| 985 | throw NativeScriptException(ss.str()); |
| 986 | } |
| 987 | |
| 988 | JniLocalRef tmpArr(env.NewObjectArray(length, JAVA_LANG_STRING, nullptr)); |
| 989 | return (jobjectArray) env.NewGlobalRef(tmpArr); |
| 990 | } |
| 991 | |
| 992 | void CallbackHandlers::NewThreadCallback(const v8::FunctionCallbackInfo<v8::Value> &args) { |
| 993 | try { |
nothing calls this directly
no test coverage detected