PrepAway - Latest Free Exam Questions & Answers

How can this be done?

Before submitting a long form, an application needs to explicitly detect that the device is
connected to the Worklight server. How can this be done?

PrepAway - Latest Free Exam Questions & Answers

A.
Add an event listener to WL.Events.WORKLIGHT_IS_CONNECTED and handle the
submission of the form in the callback.

B.
Add an event listener to WL.Events.WORKLIGHT_IS_DISCONNECTED and handle the
submission of the form in the callback.

C.
Use WL.Client.invokeProcedure() to a procedure and then handle the submission of the form in
the callback onSuccess.

D.
Use WL.Device.getNetworkInfo() and handle the submission of the form in the callback after
checking that isNetworkConnected is true.

Explanation:


Leave a Reply