getElevation

open fun getElevation(): Float

Returns the elevation used to render both fake shadows when requiresCompatShadow is true and elevation overlays. This value is the same as the native elevation that would be used to render shadows on API 21 and up.