Home » IBM » C5050-408 » Which code snippet will enable the application developer to correctly implement this requirement?
An application developer has been given the Geo-location service requirement of most accurate and timely position information for a mobile application.
Which code snippet will enable the application developer to correctly implement this requirement?
A. WL.Device.startAcquisition ( { Geo: WL.Device.Geo.Profiles.PowerSaving() }
);
B. WL.Device.startAcquisition ( { Geo: WL.Device.Geo.Profiles.RoughTracking() }
);
C. WL.Device.startAcquisition ( { Geo: WL.Device.Geo.Profiles.LiveTracking() }
);
D. WL.Device.startAcquisition ( { Geo: WL.Device.Geo.Profiles.HighAccuracy() }
);
Correct Answer: C
Explanation/Reference:
LiveTracking()
Returns a profile to use for accurately tracking devices. The object returned can be freely modified. The object returned is:
{ enableHighAccuracy:true, highAccuracyOptions: { iOSBestAccuracy: WL.Device.Geo.IOS_BEST_ACCURACY }, maximumAge: 0 }
Incorrect:
Not A: PowerSaving()
Returns a profile to use for accurately tracking devices. The object returned can be freely modified. The object returned is:
{ enableHighAccuracy:false, minChangeTime: 300000, //5 minutes minChangeDistance: 1000, // 1Km maximumAge: 300000 //5 minutes }
Not B: RoughTracking()
Returns a profile which roughly tracks devices, representing. a trade-off between accuracy and power use.
Not D: There is no GEO function HighAccuracy.
Reference:
https://www.ibm.com/support/knowledgecenter/SSZH4A_6.1.0/com.ibm.worklight.apiref.doc/html/refjavascript-client/html/WL.Device.Geo.Profiles.html
Download Printable PDF. VALID exam to help you PASS.
|
|