December 2014
Beginner to intermediate
240 pages
6h 54m
English
Location is just a set of numbers: latitude and longitude. You can always ask the Location Sensor for its most recent reading of those numbers using the getter blocks because they do appear as component properties. They’re also accessible in the LocationChanged event as parameters. Both methods look at the same data and work exactly the same (see Figure 10.4).
Figure 10.4 Two versions of the LocationChanged event: One gets the location data from the event parameters, and the other gets the data from the component properties. They work exactly the same. Only one can exist at a time in a project, however (which is why the red error ...
Read now
Unlock full access