// Checks whether the specified application is installed.varapplicationId="com.senspark.ee.test";varisInstalled=EE.Platform.IsApplicationInstalled(applicationId);// Attempts to open the specified application.varapplicationId="com.senspark.ee.test";EE.Platform.OpenApplication(applicationId);// Gets the SHA1 signature (Android only).varsignature=EE.Platform.GetSha1Signature();// Gets activity (Android) or view (iOS) size in pixels.var(width,height)=EE.Platform.GetViewSize();// Gets the full screen size in pixels (including bars)var(width,height)=EE.Platform.GetScreenSize();// Gets the unique ID for the current device.EE.Utils.NoAwait(async()=>{vardeviceId=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.Utils.NoAwait(async()=>{varisAvailable=awaitEE.Platform.TestConnection("www.google.com",1.0f);});
// Runs an action on Unity thread.EE.Thread.RunOnLibraryThread(()=>{// Prints the current thread ID.Debug.Log($"CurrentThreadId = {Thread.CurrentThread.ManagedThreadId}");});// Runs an action on UI thread (Android) or Main thread (iOS).EE.Thread.RunOnMainThread(()=>{// Prints the current thread ID.Debug.Log($"CurrentThreadId = {Thread.CurrentThread.ManagedThreadId}");});