PTV Navigator Remote Interface Documentation
Variables

SetExtAppButtonResources

Variables

final int MSG_RI_SET_EXTAPP_RESOURCES = 2001

Detailed Description

Set the resources for an ExtApp Button

An ExtApp button is a button shown on the main navigation screens that allows the user to switch to an external application.

The icon for the button must be provided through an android FileProvider class to be able to grant the navigator app access to the file (needed for Android >= 10). The steps to grant a permission is as following:

<provider android:name="androidx.core.content.FileProvider" android:authorities="com.ptvag.navigation.ritest.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/filepaths"></meta-data> </provider> *

For more implementation details, please see the RITest demo app.

Sending bundle:

KeyValueTypeInfo
IconName The name of the ExtApp icon String
ClassName The class name of the external app String
PackageName The package name of the external app String

Returned error codes:

RI_ERROR_NONE if everything is ok.
RI_ERROR_RI_DISABLED if the Remote Interface service is disabled and/or not licensed.
RI_ERROR_NOT_INITIALIZED if the Remote Interface service is not initialized yet.
RI_ERROR_NO_LICENSE if the navigator has no valid license


© PTV Logistics 2024 Generated on Tue May 27 2025 16:37:35 for PTV Navigator Remote Interface Documentation by doxygen 1.7.3