FeedbackHelper

object FeedbackHelper

Provides utilities for working with feedback

Functions

Link copied to clipboard
fun encodeScreenshot(screenshot: Bitmap, options: BitmapEncodeOptions = BitmapEncodeOptions.Builder().build()): String

Scales and compresses a Bitmap, then encodes the result to a Base64 string. Returned String can be passed to MapboxNavigation.postUserFeedback function.

Link copied to clipboard
fun getActiveNavigationFeedbackTypes(): Array<String>

Returns feedback types to send during Active Navigation.

Link copied to clipboard
fun getArrivalFeedbackTypes(): Array<String>

Returns feedback types to send upon arrival at the destination point.

Link copied to clipboard
fun getFeedbackSubTypes(feedbackType: String): Array<String>

Returns feedback subtypes that can be sent with a given feedbackType.

Link copied to clipboard
fun getFreeDriveFeedbackTypes(): Array<String>

Returns feedback types to send during Free Drive.