Android 12 Developer Preview is here! Try it out, and give us your feedback!

OnScreenResultCallback

public interface OnScreenResultCallback

com.google.android.libraries.car.app.OnScreenResultCallback


A callback to provide the result set by a Screen.

Summary

Public methods

abstract void onScreenResult(Object result)

Provides the result from the Screen that was pushed using ScreenManager.pushForResult(Screen, OnScreenResultCallback), or null if no result was set.

Public methods

onScreenResult

public abstract void onScreenResult (Object result)

Provides the result from the Screen that was pushed using ScreenManager.pushForResult(Screen, OnScreenResultCallback), or null if no result was set.

This callback will be called right before the Lifecycle.State of the Screen that set the result becomes Lifecycle.State.DESTROYED.

Parameters
result Object: the result provided by the Screen that was pushed using ScreenManager.pushForResult(Screen, OnScreenResultCallback), or null if no result was set.