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