#pragma once #include namespace JniFun { void longinWX(const char* APP_ID,const char* AppSecret); void shareImageWX(const char* ImgPath,int nType); void shareTextWX(const char* kText,int nType); void shareUrlWX(const char* kUrl,const char* kTitle,const char* kDesc,int nType); void shareImageXL(const char* ImgPath, int nType); void shareTextXL(const char* kText, int nType); void shareUrlXL(const char* kUrl, const char* kTitle, const char* kDesc, int nType); void showWebView(const char* url ); void versionUpdate(const char* url ,const char* desc, const int filesize, const int isUpdate); void startSoundRecord(); const char* stopSoundRecord(); //获取版本号 int getVersionCode(void); //获取版本号 std::string getVersionName(void); //获取应用名称 std::string getAppName(void); //获取APP启动参数 std::string getRunParam(void); //打开链接 void openURL(const std::string &url); //获取系统时间 std::string getSystemTime(); std::string getDataTime(); //获取系统时间(毫秒) long long getCurrTime(); void startLocation(); void stopLocation(); double distanceBetween(double aLatitude, double aLongitude, double bLatitude, double bLongitude); // Decode image data via Android BitmapFactory and save as PNG (fallback for libjpeg ABI mismatch) bool decodeAndSaveImage(const char* data, int dataLen, const char* savePath); }