encodeScreenshot

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.

Return

encoded screenshot as a Base64 string