public static class PlatformEventSources


Dynamic types for platform events

Summary

Nested types

public static class PlatformEventSources.Keys

Data sources keys for platform event.

Public fields

static @NonNull PlatformEventSources

Public methods

static final @NonNull DynamicBuilders.DynamicBool

Creates a DynamicBool which receives the current state of any pending updates for the current layout.

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

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

Public fields

INSTANCE

Added in 1.3.0-alpha10
public static @NonNull PlatformEventSources INSTANCE

Public methods

isLayoutUpdatePending

Added in 1.3.0-alpha10
@ProtoLayoutExperimental
@RequiresSchemaVersion(major = 1, minor = 600)
public static final @NonNull DynamicBuilders.DynamicBool isLayoutUpdatePending()

Creates a DynamicBool which receives the current state of any pending updates for the current layout.

The layout update pending status is true from when a new layout is requested until it is received and inflated or the request fails. In all other cases, it is false.

isLayoutVisible

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

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

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