onStableAreaChanged
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.SurfaceCallback
SurfaceCallback#onStableAreaChanged(Rect)for more details.
Parameters
stableArea
the stable area provided by the host
edgeInsets
distance from each side of the screen that creates the stableArea