setOutline

Function

Common
fun GraphicsLayer.setOutline(outline: Outline)

Configures an outline for this GraphicsLayer based on the provided Outline object.

When GraphicsLayer.shadowElevation is non-zero a shadow is produced using a provided Outline. Additionally if GraphicsLayer.clip is true, the contents of this GraphicsLayer will be clipped to this geometry.

Parameters

outlinean Outline to apply for the layer.