QPSettings
QPSettings
Configures QPEngine behaviour
Parameters
(default = true ) - activate vsign message reading via TTS (default: true)
(default = "https://westeurope-01.quandopasso.it/{domain}/mobile/v2" ) - QuandoPasso API base url
(default = "viasuisse" ) - QuandoPasso Domain identifier
(default = 180 ) - Interval used to fetch vsigns from the API (default: 15s)
(default = 10000 ) - Determines the coverage radius for the vsigns returned by the API (meters) (default: 3000m)
(default = 45 ) - Tolerance in degrees used when calculating the entering angle for a vsign (default: 45deg)
(default = true ) - Enable or disable bearing checks when entering a vsign (default: true)
(default = 180 ) - Determines for how long an already notified vsign won't be notified again if the user re-enters it. (default: 30 min)
(default = 100 ) - Determines the min. accuracy in meters for GPS locations to be considered by the engine (default: 100 m)
(default = false ) - If true, mocked locations (as detected by the system) are discarded (default: false)
(default = 1200 ) - Interval (in seconds) to send metrics to the API (default: 60s)
(default = null ) - Language code for TTS and messaging (default: system language)
(default = default sdk icon ) - Resource ID (int) for the icon displayed in the service notification tray
(default = "QP Location Service" ) - Title to be displayed as the foreground service name in the notification tray
(default = "QP Location Service - suspended" ) - Title to be displayed as the foreground service name in the notification tray when the SDK is in suspended mode
(default = true ) - Automatically enable/disable vsign detection and main SDK functionality based on the detected user activity (default: true)
( default = UserActivityType.IN_VEHICLE ) - List of UserActivityTypes that will enable the SDK main functionality when detected on enter (default: UserActivityType.IN_VEHICLE)
( default = arrayOf() ) - List of UserActivityDetectedMessage, containing the text that will be read by the Text-to-speech service when the configured activity type transitions are detected (default: empty list, no TTS messages)
( default = "Traffic alerts on" ) - Notification text displayed in the service notification tray when the SDK gets activated
( default = "Traffic alerts off, Auto-start active" ) - Notification text displayed in the service notification tray when the SDK gets de-activated
( default = null ) - optional PendingIntent to trigger when the user taps on the service notification bubble. Useful to display a UI screen from the host app when the users taps the notification.
( default = false ) - Determines whether or not play a Jingle before a tts message. Default is false.
( default = 2.0 ) - Value (in seconds) to determine the delay between Jingle and TTS message. Default is 2.
( default = null ) - The remote URL from where download the file. Example for remote URL: Uri.parse("https://doc.quandopasso.com/jingles/notification1.mp3")
( default = true ) - Determines whether or not cache the jingle file after first download. Default is false.
( default = 0 ) - Number of TTS messages will be repeated. If not defined or zero messages wont be repeated. Default is 0.
( default = 2.0 ) - Value (in seconds) to determine the delay between TTS messages iterations. Default is 5.
( default = "Quandopasso" ) - Title of the entered notification (default: "Quandopasso")
( default = true) - Enable or disable notification (default: true)
( default = empty list) - The list of IDs of the filtered categories
( default = false) - If set to true forces the audio to be played out of the device's speaker. Use forcedDeviceSpeakerVolume to force also the volume of the output.
( default = 0.8 ) - Set this variable to force the volume of the audio to be played out of the device's speaker. This works only if forceAudioToDeviceSpeaker is set to true. Accepts value in a range from 0.0 to 1.0. Default is 0.8.
List of PSK
API Key
( default = https://westeurope-01.quandopasso.it/quandopasso/fcd/v1 ) - FCD API base url
( default = true ) - FCD enabled on activity changes
( default = false ) - FCD enabled on specific AVS
( default = 300 ) - FCD interval in seconds
( default = 3 ) - FCD request batch size
( default = 5000 ) - Sets the desired interval of location updates.
( default = 5000 ) - Sets the fastest allowed interval of location updates.
( default = 5000 ) - Sets the longest a location update may be delayed.
( default = 5 ) - Sets the minimum distance required between consecutive location updates.