PMPpcRequestSender

Direct functions to send PPC request

Samples

import android.content.Context
import com.sygic.profi.sdk.party.ppc.PMPpcRequestSenderImpl
import kotlin.random.Random
fun main() { 
   //sampleStart 
   object PPCSender {
    fun askForRoute(context: Context) {
        // feel free to setup own value of correlationId
        val ownCorrelationId = "ASK-ROUTE-${Random.nextInt()}"
        // Send request for sending polyline again
        PMPpcRequestSenderImpl(context).askForRoute(ownCorrelationId)
    }
} 
   //sampleEnd
}

Functions

Link copied to clipboard
open fun askForRoute(correlationId: String)

PPC asks Navigation to send existing route via event.NaviStart or information, that there is no routing set-up.

Link copied to clipboard
abstract fun broadcast(ppcRequest: PMPpcRequest)

Inheritors

Link copied to clipboard