IBM
C2180-408 · Question #1
A mobile application developer has been asked to write an application that will work even when there is no connectivity. When input data is to be saved, the application must determine whether it…
The correct answer is D. Use the JavaScript API call Document.addEventListener to register callbacks when. See the full explanation below for the reasoning.
Question
A mobile application developer has been asked to write an application that will work even when there is no connectivity. When input data is to be saved, the application must determine whether it should be written to the server or to a cache. How should the application developer do this?
Options
- ACall WL.Server.isConnected() before every call to the Worklight server, and write to the cache
- BUse the Worklight API call WL.Server.setConnectivity() to register a function to be called
- CUse the Worklight API call WL.Framework.addEventListener to register callbacks when
- DUse the JavaScript API call Document.addEventListener to register callbacks when
How the community answered
(28 responses)- A4% (1)
- B4% (1)
- C7% (2)
- D86% (24)
Community Discussion
No community discussion yet for this question.