HandshakeInfo

@CarProtocol
class HandshakeInfo


A container for the information conveyed by the host after the handshake with the app is completed.

Summary

Public constructors

HandshakeInfo(hostPackageName: String, hostCarAppApiLevel: Int)

Creates an instance of HandshakeInfo.

Public functions

Int

Returns the negotiated API level that should be used to communicate with the host.

String

Returns the host package name.

Public constructors

HandshakeInfo

Added in 1.0.0
HandshakeInfo(hostPackageName: String, hostCarAppApiLevel: Int)

Creates an instance of HandshakeInfo.

Parameters
hostPackageName: String

the host package name

hostCarAppApiLevel: Int

the API level that should be used to communicate with the host

Public functions

getHostCarAppApiLevel

Added in 1.0.0
fun getHostCarAppApiLevel(): Int

Returns the negotiated API level that should be used to communicate with the host.

getHostPackageName

Added in 1.0.0
fun getHostPackageName(): String

Returns the host package name.