safeArea

abstract val safeArea: LiveData<SafeArea?>

The area in which information important to the user should be displayed. Due to the nature of calculating the safe area, the value of this LiveData may be updated during a layout pass. If this is relevant to processing the safe area change, View.isInLayout can be consulted to determine if the value is being updated during a layout pass.

Because ViewModel updates during the layout pass aren't processed until after the next frame is drawn, IviFragment.ViewFactory.setSafeAreaFunction should typically be used to update the safe area in a view.