Total Pageviews

Monday, April 21, 2014

os.exit()

os.exit()
ប្រើសំរាប់ហៅ C Function exit() ជាមួយនឹងជំរើសរបស់កូដក្នុងការបញ្ចប់ host program។ តំលៃដើមសំរាប់កូដគឺកូដសំរេច
Syntax: os.exit ( [exit])
Exit(ជំរើស) វាជាចំនួនលេខដែលជា Optional parameter ដែលត្រឡប់ជា Exit code ទៅកាន់ OS

ចំណាំះ
Do not use this function on iOS if you intend to submit to the App Store. Calling os.exit() terminates the application process immediately, which can be interpretted by an app reviewer as a crash, causing your app to be rejected.

On Android, it is recommended that you call the native.requestExit() function instead, which will close the application window gracefully.
សូមមើលកូដះ
os.exit()   -- exits the app


No comments:

Post a Comment