void OnGPSUpdated(inCords)
Description
This callback function is called when the GPS is updated, click here to learn how to use force GPS capture
Parameters
The following is a list of parameters the functions receives
Parameter | Type | Description |
---|---|---|
inCords | ICoordinates | Coordinates to check |
Return Type
void
Example
The example below will set a new location if one was not set if the location is null or not valid
function OnGPSUpdated(inLocation)
{
if ((SubjectGPSLocation==null || !SubjectGPSLocation.IsValid) && inLocation!=null && inLocation.IsValid)
{
SubjectGPSLocation = inLocation;
}
}
Comments
Please sign in to leave a comment.