PreviewScreenshotParams


Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

class PreviewScreenshotParams


Parameters for an optional final screenshot taken by EditorSession upon exit and reported via EditorState.

Summary

Public constructors

PreviewScreenshotParams(
    renderParameters: RenderParameters,
    instant: Instant
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Instant

The Instant to render with.

RenderParameters

The RenderParameters to use when rendering the screen shot

Public constructors

PreviewScreenshotParams

Added in 1.0.0
PreviewScreenshotParams(
    renderParameters: RenderParameters,
    instant: Instant
)
Parameters
renderParameters: RenderParameters

The RenderParameters to use when rendering the screen shot

instant: Instant

The Instant to render with.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

instant

Added in 1.0.0
val instantInstant

The Instant to render with.

renderParameters

Added in 1.0.0
val renderParametersRenderParameters

The RenderParameters to use when rendering the screen shot