Chrome App Lifecycle -
i'm reading through chrome app lifecycle. model looks simple. there's onlaunch
, onsuspend
.
a few questions:
1) possible detect transition foreground background?
2) chrome persist state automatically before moving background?
3) chrome snap capture of app's window before moving background?
4) same apply chrome packaged apps?
1) yo'll receive onsuspend
event right before event page become inactive. if want know when user close app's window need listen page unload event in app inform event page fact (using chrome.runtime api).
2) if set "id" parameter chrome.app.window.create options object, chrome persist window state: width, height, top , left position , screen number , restore during next app bootstrap. can override behavior setting own values in chrome.app.window.create method.
3) far know - no.
4) no. different kind of apps.
Comments
Post a Comment