Function

setOutline

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

setOutline

Source set: Common
public 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

outline an Outline to apply for the layer.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: