SessionInfo
@RequiresCarApi(value = 6)
@CarProtocol
class SessionInfo
Information about a Session, such as the physical display and the session ID.
Summary
Constants |
|
|---|---|
const SessionInfo |
A default |
const Int |
The cluster display, usually located behind the steering wheel. |
const Int |
The primary infotainment display usually in the center column of the vehicle. |
Public constructors |
|---|
SessionInfo(displayType: Int, sessionId: String)Creates a new |
Public functions |
|
|---|---|
Boolean |
|
Int |
Returns the type of display that the |
String |
Returns a session-stable ID, unique to the display that the |
(Mutable)Set<Class<Template!>!>? |
getSupportedTemplates(carAppApiLevel: Int)Returns the set of templates that are allowed for this |
Int |
hashCode() |
String |
toString() |
Constants
DEFAULT_SESSION_INFO
const val DEFAULT_SESSION_INFO: SessionInfo
A default SessionInfo for the main display, used when the host is on a version that doesn't support this new class.
DISPLAY_TYPE_CLUSTER
const val DISPLAY_TYPE_CLUSTER = 1: Int
The cluster display, usually located behind the steering wheel. Note: There can be more than one cluster session running in case of multi display cars.
DISPLAY_TYPE_MAIN
const val DISPLAY_TYPE_MAIN = 0: Int
The primary infotainment display usually in the center column of the vehicle.
Public constructors
SessionInfo
SessionInfo(displayType: Int, sessionId: String)
Creates a new SessionInfo with the provided displayType and
sessionId.
Public functions
getDisplayType
fun getDisplayType(): Int
Returns the type of display that the Session is rendering on.
getSessionId
fun getSessionId(): String
Returns a session-stable ID, unique to the display that the Session is rendering on.