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.

public final class PreviewScreenshotParams


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

Summary

Public constructors

PreviewScreenshotParams(
    @NonNull RenderParameters renderParameters,
    @NonNull Instant instant
)

Public methods

boolean
equals(Object other)
final @NonNull Instant

The Instant to render with.

final @NonNull RenderParameters

The RenderParameters to use when rendering the screen shot

int

Public constructors

PreviewScreenshotParams

Added in 1.0.0
public PreviewScreenshotParams(
    @NonNull RenderParameters renderParameters,
    @NonNull Instant instant
)
Parameters
@NonNull RenderParameters renderParameters

The RenderParameters to use when rendering the screen shot

@NonNull Instant instant

The Instant to render with.

Public methods

equals

public boolean equals(Object other)

getInstant

Added in 1.0.0
public final @NonNull Instant getInstant()

The Instant to render with.

getRenderParameters

Added in 1.0.0
public final @NonNull RenderParameters getRenderParameters()

The RenderParameters to use when rendering the screen shot

hashCode

public int hashCode()