getScrimOpacity

@FloatRange(from = 0, to = 1)
open fun getScrimOpacity(@NonNull parent: @NonNull CoordinatorLayout, @NonNull child: @NonNull V): Float(source)

Determine the current opacity of the scrim behind a given child view

A scrim may be used to indicate that the other elements beneath it are not currently interactive or actionable, drawing user focus and attention to the views above the scrim.

The default implementation returns 0.0f.

Return

the desired scrim opacity from 0.0f to 1.0f. The default return value is 0.0f.

Parameters

parent

the parent view of the given child

child

the child view above the scrim