bharal
bharal

Reputation: 16214

Titanium - lifecycle of a ti.app.proper

Does anybody know what the lufecyycle of a ti.app.property is in titanium?

I am wantng to do some stuff on application startup only, and was wanting to hold if the thing in question had occurred or not in a ti.app.property field. the problem is, i am unsure if this field, once set, will persist across the "home" button or "back" button being pressed.

So is there some place at suggests when a ti.app.property field is instantiated/destroyed etc?

Upvotes: 0

Views: 107

Answers (1)

Josiah Hester
Josiah Hester

Reputation: 6095

It persists till the app is deleted from your phone or you programmatically reset / delete it.

Exact quote from the documentation:

The App Properties module is used for storing application-related data in property/value pairs that persist beyond application sessions and device power cycles.

Upvotes: 1

Related Questions