setInsetAmount

open fun setInsetAmount(@FloatRange(from = 0.0, to = 1.0) insetAmount: Float)(source)

Sets the depth of the protection to a value from 0 to 1, where 0 means the protection is completely outside the window and 1 means the protection is completely inside the window.

Parameters

insetAmount

The depth of the protection.

Throws

if the given inset amount is not in a range of [0, 1].