#include<ee/Cpp.hpp>// Checks whether the specified application is installed.autoapplicationId="com.senspark.ee.test";autoisInstalled=ee::Platform::isApplicationInstalled(applicationId);// Attempts to open the specified application.autoapplicationId="com.senspark.ee.test";ee::Platform::openApplication(applicationId);// Gets the current application information.autoapplicationId=ee::Platform::getApplicationId();autoapplicationName=ee::Platform::getApplicationName();autoversionName=ee::Platform::getVersionName();autoversionCode=ee::Platform::getVersionCode();// Gets the SHA1 signature (Android only).autosignature=ee::Platform::getSHA1CertificateFingerprint();// Gets activity (Android) or view (iOS) size in pixels.auto[width,height]=ee::Platform::getViewSize();// Gets the full screen size in pixels (including bars).auto[width,height]=ee::Platform::getScreenSize();// Gets the unique ID for the current device.ee::noAwait([]()->ee::Task<>{autodeviceId=co_awaitee::Platform::getDeviceId();});// Composes and sends an email.ee::Platform::sendMail("feedback@senspark.com","ee-x test app","Hello, ");// Checks the current internet connection.ee::noAwait([]()->ee::Task<>{autoisAvailable=co_awaitee::Platform::testConnection("www.google.com",1.0f);});
#include<ee/Cpp.hpp>// Runs an action on Cocos2d-x thread.ee::Thread::runOnLibraryThread([]{//});// Runs an action on UI thread (Android) or Main thread (iOS).ee::Thread::runOnMainThread([]{//});