HandshakeInfo


@CarProtocol
public final class HandshakeInfo


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

Summary

Public constructors

HandshakeInfo(@NonNull String hostPackageName, int hostCarAppApiLevel)

Creates an instance of HandshakeInfo.

Public methods

int

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

@NonNull String

Returns the host package name.

Public constructors

HandshakeInfo

Added in 1.0.0
public HandshakeInfo(@NonNull String hostPackageName, int hostCarAppApiLevel)

Creates an instance of HandshakeInfo.

Parameters
@NonNull String hostPackageName

the host package name

int hostCarAppApiLevel

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

Public methods

getHostCarAppApiLevel

Added in 1.0.0
public int getHostCarAppApiLevel()

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

getHostPackageName

Added in 1.0.0
public @NonNull String getHostPackageName()

Returns the host package name.