on Stable Area Changed
open fun onStableAreaChanged(@NonNull stableArea: Rect, @NonNull edgeInsets: EdgeInsets)
Content copied to clipboard
Called when the car library updates the stable region for the surface. This area will remain constant while the visible area changes when views come in and out of view.
See also
androidx. car. app. Surface Callback
SurfaceCallback#onStableAreaChanged(Rect)for more details.
Parameters
stable Area
the stable area provided by the host
edge Insets
distance from each side of the screen that creates the stableArea