Session

public abstract class Session
extends Object implements LifecycleOwner

java.lang.Object
   ↳ androidx.car.app.Session


The base class for implementing a session for a car app.

Summary

Public constructors

Session()

Public methods

final CarContext getCarContext()

Returns the CarContext for this session.

Lifecycle getLifecycle()

Returns the Session's Lifecycle.

void onCarConfigurationChanged(Configuration newConfiguration)

Notifies that the CarContext's Configuration has changed.

abstract Screen onCreateScreen(Intent intent)

Requests the first Screen for the application.

void onNewIntent(Intent intent)

Notifies that the car app has received a new Intent.

Inherited methods