iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello Crosslight Support,
is there any sample (iOS and Android) about application state. With this I mean the following:
(1) You work with the application and therefore the application has a certain state (special things are selected, maybe some text was entered).
(2) Now, the application suspends or terminates.
(3) When restarting the app, I want to restore the state of (1).
There are the lifecycle events for resume, terminate, start and there is a "StateAware" attribute. But how to use them properly? As said, an example for iOS and Android would be nice.
Thanks,
Thomas
Hello Thomas,
The StateAware attribute is particularly introduced to support automatic state restoration in Windows 8 platform. So if users navigated to several levels down then suspend the app, Crosslight can restore the navigation stacks completely and obtain the navigation parameters from ViewModel/Model through properties marked with StateAware attribute.
Hope this helps.
Any news?
Sorry for the delay in sending this.
Crosslight provides an architectural design called application service which controls the application's main entry point and maintains its life cycle. You can implement an application service by deriving from the ApplicationServiceBase class.
For more detail information, I recommend you to check the "Implementing Crosslight Application Service" documentation in here.
The sync process in the Sync Sample will be automatically triggered in the following events:
To learn how data synchronization works and see it in action, please check out the Synchronization Sample which demonstrates a fully-functional simple task app with two-way sync support.
Hope this help.
Hello Yudi,
Thanks for answering.
I wonder what the "StateAware" attribute is used for? Is there an automatic mechanism for saving "StateAware" viewmodel properties when an app gets suspended or terminated?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname