1 2 3 4 5 6 7 8 9
| if (plus.os.name.toLowerCase() === 'android') { plus.runtime.quit(); } else { const threadClass = plus.ios.importClass("NSThread"); const mainThread = plus.ios.invoke(threadClass, "mainThread"); plus.ios.invoke(mainThread, "exit"); }
|