OnGPSUpdated()

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;
    }
}
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.