RectangularSmallWidgetPreviewParams

class RectangularSmallWidgetPreviewParams : BaseWidgetPreviewParams


A PreviewParameterProvider that provides Small-type widget configurations from the rectangular specification with safe padding buffers.

This set of parameters is purposely designed to help Wear widget developers generate and export clean, rectangular screenshot preview assets for the Play Store and galleries where users can choose their widgets. The preview configuration utilizes a square-cornered (rectangular) specification and applies safe padding boundaries outside the content area to prevent clipping when cropped to custom OEM widget shapes.

Summary

Public constructors

Inherited functions

From androidx.glance.wear.tooling.preview.BaseWidgetPreviewParams
open String

Returns a descriptive name for the preview configuration at the specified index.

Inherited properties

From androidx.glance.wear.tooling.preview.BaseWidgetPreviewParams
String

The prefix to use for the display name of the preview parameters.

open Sequence<WearWidgetParams>

The sequence of WearWidgetParams configurations to be supplied to the preview.

From androidx.compose.ui.tooling.preview.PreviewParameterProvider
open Int

Public constructors

RectangularSmallWidgetPreviewParams

Added in 1.0.0-alpha14
RectangularSmallWidgetPreviewParams()