My Project
Variables
SetUserhintBigSignExt

Shows a user hint as a big sign. More...

Variables

static final int MSG_RI_SET_USERHINT_BIG_SIGN_FROM_EXTERNAL_DIR = 128
 

Detailed Description

Shows a user hint as a big sign.

Displays the given text and icon in the signpost sign during navigation or tracking. The text is displayed for the given time. The current signpost will not be shown during this time.

This method works on all Android versions, please use this in future implementations instead of MSG_RI_SET_USERHINT_BIG_SIGN.

Sending bundle:

KeyValueType

Info

Text The text to show String
Icon The filename including absolute path of the icon to show String
Duration The time span in milliseconds Int
ColorSign The background color of the sign Int
ColorText The text color of the sign Int
ColorFrame The frame color of the sign (deprecated) Int

The icon which should be displayed on the sign has to reside on the file system of the target device.
The client software must use a FileProvider to grant access to the file.

Adding a user hint sign with an icon is done by using the android FileProvider class to be able to grant the foreign navigator app access to files of this client (needed for Android 10/11). The steps to grant a permission is as following:

Color value are specified as packed ints, made up of 4 bytes: alpha, red, green, blue. The single color components are stored as follows (alpha << 24) | (red << 16) | (green << 8) | blue. Each component ranges between 0..255 with 0 meaning no contribution for that component, and 255 meaning 100% contribution.

Returned error codes:

RI_ERROR_NONE in case the text was shown correctly.
RI_ERROR_RI_DISABLED if the Remote Interface service is disabled and/or not licensed.
RI_ERROR_IS_INITIALIZING if the Remote Interface service is not initialized yet.

RI_ERROR_FILE_ACCESS if the file could not be loaded (either because of not granted permissions or of other load error).


© PTV Group 2021 Generated on Sun Oct 2 2022 19:28:23 for My Project by doxygen 1.8.17