RectangularAllWidgetPreviewParams

class RectangularAllWidgetPreviewParams : BaseWidgetPreviewParams


A PreviewParameterProvider that provides standard widget configurations to be used for preview image assets that are displayed as part of the system, such as a catalog, that are not cut to shape as it will be done by the system.

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. This includes both Small and Large widget types.

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

RectangularAllWidgetPreviewParams

Added in 1.0.0-alpha14
RectangularAllWidgetPreviewParams()