VisioMove SDK (Android)  2.1.22
 All Classes Functions Variables Pages
VgINavigationCallback Class Reference
Inheritance diagram for VgINavigationCallback:
Inheritance graph

Public Member Functions

void swigReleaseOwnership ()
void swigTakeOwnership ()
boolean notifyNavigationComputed (VgNavigationRequestStatus pStatus, VgINavigationRefPtr pNavigation)
- Public Member Functions inherited from VgReferenced
synchronized void release ()
 VgReferenced ()
 VgReferenced (VgReferenced pThis)
void ref ()
int unref ()
int getNbReferences ()

Detailed Description

VgINavigationCallback provides an interface for the Navigation Module to communicate with the navigation request.

any subclass of VgNavigationModule::VgINavigationCallback should not hold a reference to VgINavigation , more information in VgINavigationCallback::notifyNavigationComputed()
2.1.2 updated note on retaining a VgINavigation on this class

Member Function Documentation

boolean VgINavigationCallback.notifyNavigationComputed ( VgNavigationRequestStatus  pStatus,
VgINavigationRefPtr  pNavigation 

Informs requester that a navigation has been computed.

The callback should not keep a reference pointer to pNavigation. It can make other classes keep a reference or if it keeps a reference it needs to be cleared manually at some point before the user's reference to this callback disappear. The reason for this constraint is is because VgINavigation keeps a reference to the callback, which is accessible via pNavigation->getRequestParameters().mCallback
pStatusIndicating the status of the result.
pNavigationContaining the newly calculated navigation, or NULL if pStatus returns anthing other then eSuccess.
2.1.2 updated remark regarding retention of pNavigation
true if the VgINavigation object should continue to call the notifyNewInstruction() for the first instruction.
void VgINavigationCallback.swigReleaseOwnership ( )
void VgINavigationCallback.swigTakeOwnership ( )

The documentation for this class was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016