public class VgMyInstructionView extends java.lang.Object implements VgMyInstructionDisplay
Constructor and Description |
---|
VgMyInstructionView(Activity pActivity,
VgMyInstructionUpdateListener pInstructionUpdateListener,
VgMySurfaceView pSurfaceView,
FrameLayout pContainerLayout) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the content.
|
void |
createLayout()
Create the layout of the view who will be responsible for displaying
the navigation instructions.
|
void |
hide()
Hides this Object.
|
void |
hideNavigationBar()
Hide navigation bar
|
boolean |
isVisible() |
void |
release()
This method should be called when the activity dies to notify that we
should release/unregister all VisioDevKit objects, and null out as much
references on other objects as possible.
|
void |
setNavigationIcon(VgManeuverType pManeuverType)
Set the navigation icon within the view.
|
void |
setNavigationText(java.lang.String pTitleText,
java.lang.String pDetailedText,
java.lang.String pInstructionNumText,
java.lang.String pBasicText)
Set the text within the navigation bar.
|
void |
show()
Displays this Object.
|
void |
showNavigationBar()
Show navigation bar.
|
protected void |
updateNavigationBar(VgINavigationConstRefPtr pNavigation,
long pInstructionIndex)
Updates the navigation bar according to the navigation object.
|
void |
updateWithInstruction(VgINavigationConstRefPtr pNavigation,
long pIndex)
Updates this Display with an instruction.
|
public VgMyInstructionView(Activity pActivity, VgMyInstructionUpdateListener pInstructionUpdateListener, VgMySurfaceView pSurfaceView, FrameLayout pContainerLayout)
public void createLayout()
public void showNavigationBar()
public void hideNavigationBar()
protected void updateNavigationBar(VgINavigationConstRefPtr pNavigation, long pInstructionIndex)
mNavigation2
- The navigation objectpublic void setNavigationText(java.lang.String pTitleText, java.lang.String pDetailedText, java.lang.String pInstructionNumText, java.lang.String pBasicText)
pTitleText
- The navigation instruction titlepDetailedText
- Detailed text to be displayed within
the navigation bar.pInstructionNumText
- Simple text displayed within the navigation bar which shows
which instruction is active.pBasicText
- Basic instruction text.public void setNavigationIcon(VgManeuverType pManeuverType)
pManeuverType
- The maneuver type to display.public void updateWithInstruction(VgINavigationConstRefPtr pNavigation, long pIndex)
VgMyInstructionDisplay
updateWithInstruction
in interface VgMyInstructionDisplay
pNavigation
- The navigation object used.pIndex
- The instruction index to use.public void clear()
VgMyInstructionDisplay
clear
in interface VgMyInstructionDisplay
public void show()
VgMyDisplayable
show
in interface VgMyDisplayable
public void hide()
VgMyDisplayable
hide
in interface VgMyDisplayable
public boolean isVisible()
isVisible
in interface VgMyDisplayable
public void release()
release
in interface VgMyInstructionDisplay