HandshakeInfo
public
final
class
HandshakeInfo
extends Object
java.lang.Object | |
↳ | androidx.car.app.HandshakeInfo |
A container for the information conveyed by the host after the handshake with the app is completed.
Summary
Public constructors | |
---|---|
HandshakeInfo(String hostPackageName, int hostCarAppApiLevel)
Creates an instance of |
Public methods | |
---|---|
int
|
getHostCarAppApiLevel()
Returns the negotiated API level that should be used to communicate with the host. |
String
|
getHostPackageName()
Returns the host package name. |
Inherited methods | |
---|---|
Public constructors
HandshakeInfo
public HandshakeInfo (String hostPackageName, int hostCarAppApiLevel)
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 methods
getHostCarAppApiLevel
public int getHostCarAppApiLevel ()
Returns the negotiated API level that should be used to communicate with the host.
Returns | |
---|---|
int |
getHostPackageName
public String getHostPackageName ()
Returns the host package name.
Returns | |
---|---|
String |