on Visible Area Changed
open fun onVisibleAreaChanged(@NonNull visibleArea: Rect, @NonNull edgeInsets: EdgeInsets)
Content copied to clipboard
Called when the car library updates the visible regions for the surface. For example, this is triggered when the action buttons come in and out of visibility. You can assume this will be called after onAttached.
See also
androidx. car. app. Surface Callback
SurfaceCallback#onVisibleAreaChanged(Rect)for more details.
Parameters
visible Area
the visible area provided by the host
edge Insets
distance from each side of the screen that creates the visibleArea