public class VgMyNavigationHelper extends java.lang.Object implements VgMyNavigationCreator
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String[][] |
cActionStringTable
Action string table for localization
|
protected static java.lang.String[] |
cLanguageStrings
The language identifiers
|
protected static java.lang.String[][] |
cNextActionStringTable
Next action string table for localization (fr/en)
|
protected static int |
cNumLanguages
The number of supported languages
|
protected static java.lang.String[][] |
cStringTable
Link words string table for localization (fr/en)
|
protected static java.lang.String[][] |
cTimeStringTable
Time string table for localization (fr/en)
|
Constructor and Description |
---|
VgMyNavigationHelper(Activity pActivity,
VgSurfaceView pSurfaceView) |
Modifier and Type | Method and Description |
---|---|
void |
createNavigation(VgINavigationRequestParameters pParameters)
This method requests that a navigation object is computed.
|
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.
|
protected static java.lang.String |
replaceTokens(java.lang.String pStringWithTokens,
VgINavigationInstructionConstRefPtr pInstruction,
VgINavigationInstructionConstRefPtr lNextInstr)
Takes a language string with tokens, then replaces those tokens with contextual data.
|
static void |
translateInstruction(VgINavigationInstructionConstRefPtr pInstruction,
VgINavigationConstRefPtr mNavigation2,
com.visioglobe.VisioSample.Blocks.VgMyNavigationHelper.VgTranslatedInstruction pTranslated,
VgIMapModule pMapModule,
int pLang)
This static method is used to translate a navigation instruction into a
detailed message, along with other instruction-related data.
|
protected static final java.lang.String[] cLanguageStrings
protected static final int cNumLanguages
protected static final java.lang.String[][] cActionStringTable
protected static final java.lang.String[][] cNextActionStringTable
protected static final java.lang.String[][] cTimeStringTable
protected static java.lang.String[][] cStringTable
public VgMyNavigationHelper(Activity pActivity, VgSurfaceView pSurfaceView)
public static void translateInstruction(VgINavigationInstructionConstRefPtr pInstruction, VgINavigationConstRefPtr mNavigation2, com.visioglobe.VisioSample.Blocks.VgMyNavigationHelper.VgTranslatedInstruction pTranslated, VgIMapModule pMapModule, int pLang)
pInstruction
- The instruction to translate.mNavigation2
- The navigation object the instruction comes from.pTranslated
- A reference to the structure to feed with details.pMapModule
- The application's VgMapModule (needed for near places and floor heights).pLang
- The index of the language to use (see getLangId).VgMyNavigationHelper::getLangId
protected static java.lang.String replaceTokens(java.lang.String pStringWithTokens, VgINavigationInstructionConstRefPtr pInstruction, VgINavigationInstructionConstRefPtr lNextInstr)
pStringWithTokens
- The language string containing the tokens.pInstruction
- The current isntruction.lNextInstr
- The next instruction.public void createNavigation(VgINavigationRequestParameters pParameters)
VgMyNavigationCreator
createNavigation
in interface VgMyNavigationCreator
pParameters
- All the parameters required for the object to create
a compute a VgINavigation.public void release()
release
in interface VgMyNavigationCreator