-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathArrayHelper.h
More file actions
30 lines (20 loc) · 703 Bytes
/
Copy pathArrayHelper.h
File metadata and controls
30 lines (20 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef ARRAYHELPER_H_
#define ARRAYHELPER_H_
#include "js_native_api.h"
#include "ObjectManager.h"
#include <string.h>
namespace tns {
class ArrayHelper {
public:
static void Init(napi_env env);
private:
ArrayHelper();
static napi_value CreateJavaArrayCallback(napi_env env, napi_callback_info info);
static napi_value CreateJavaArray(napi_env env, napi_callback_info info);
static void Throw(napi_env env, const std::string& errorMessage);
static jobject CreateArrayByClassName(const std::string& typeName, int length);
static jclass RUNTIME_CLASS;
static jmethodID CREATE_ARRAY_HELPER;
};
}
#endif /* ARRAYHELPER_H_ */