PlatformEventSources


public static class PlatformEventSources


Dynamic types for platform events

Summary

Nested types

Dynamic layout update status value.

public static class PlatformEventSources.Keys

Data sources keys for platform event.

Constants

static final int

There are no pending layout updates.

static final int

A new layout has been requested, but there was an error.

static final int

A new layout has been requested.

Public fields

static @NonNull PlatformEventSources

Public methods

static final @NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 500)
isLayoutVisible()

Returns a DynamicBool which receives the current visibility status from platform.

static final @NonNull PlatformEventSources.DynamicLayoutUpdateStatus
@RequiresSchemaVersion(major = 1, minor = 600)
layoutUpdateStatus()

Returns a DynamicLayoutUpdateStatus representing the current status of the layout update.

Constants

LAYOUT_UPDATE_IDLE

Added in 1.4.0-alpha01
public static final int LAYOUT_UPDATE_IDLE = 0

There are no pending layout updates.

LAYOUT_UPDATE_IDLE_ERROR

Added in 1.4.0-alpha01
public static final int LAYOUT_UPDATE_IDLE_ERROR = 2

A new layout has been requested, but there was an error. The system will retry the update.

LAYOUT_UPDATE_WAITING

Added in 1.4.0-alpha01
public static final int LAYOUT_UPDATE_WAITING = 1

A new layout has been requested.

Public fields

INSTANCE

Added in 1.3.0
public static @NonNull PlatformEventSources INSTANCE

Public methods

isLayoutVisible

Added in 1.3.0
@RequiresSchemaVersion(major = 1, minor = 500)
public static final @NonNull DynamicBuilders.DynamicBool isLayoutVisible()

Returns a DynamicBool which receives the current visibility status from platform.

The visibility status value is true when layout is visible, and false when invisible.

layoutUpdateStatus

Added in 1.4.0-alpha01
@RequiresSchemaVersion(major = 1, minor = 600)
public static final @NonNull PlatformEventSources.DynamicLayoutUpdateStatus layoutUpdateStatus()

Returns a DynamicLayoutUpdateStatus representing the current status of the layout update.

The platform requests a new layout when explicitly requested by the tile provider, or when the current layout becomes invalidated.

The layout update status can be one of the following: