Which is equivalent for iOS:
win.close(); var activity = Titanium.Android.currentActivity; activity.finish();
Thank!
No (in titanium). In addition, Apple clearly discourages this:
“IOS app never displays Close or Quit” - Apple HIG p27 https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/MobileHIG.pdf
There are existing SO answers regarding this:
On iPhone there is no concept of exiting the application. The only action this should lead to the fact that the application will cease to touch the "Home" button on the phone, and that no developers have access.Apple, . "", , . , .
On iPhone there is no concept of exiting the application. The only action this should lead to the fact that the application will cease to touch the "Home" button on the phone, and that no developers have access.
Apple, . "", , . , .
SO : iPhone?
, ( ), , [[NSThread mainThread] exit].
[[NSThread mainThread] exit]
iOS, Titanium SDK. , :
-(id)example:(id)args { // example method exit(0); return @"Application Exit"; }
, exit() iOS App Store.
exit()
Source: https://habr.com/ru/post/1533198/More articles:Process termination callback - assemblySpring Data JPA / Hibernate OneToMany remove ManyToOne Child - springПочему hstack() копирует данные, но hsplit() создает представление на нем? - pythonUmano Android SlidingUpPanel - animation - androidWebsphere 8.0 and Java 1.7 - javaAngularJS kendo grid with a custom command that includes a template, does not handle events - javascriptПри использовании Gem System Record Record Reputation сортировки не происходит, когда я сортирую по голосам - sortingCan I use Apache Thrift without RPC? - protocol-buffersUsing transform and plyr to add a counting column to R - rDatePicker throws an exception that occurred while rendering in LayoutEditor - androidAll Articles