A2uiEventAction


public final class A2uiEventAction implements A2uiUserAction


Defines an event action triggered by a user interaction to be sent to the server.

Summary

Public constructors

A2uiEventAction(
    @NonNull String surfaceId,
    @NonNull String componentId,
    long timestamp,
    @NonNull String eventName,
    @NonNull Map<@NonNull StringObject> context
)

Public methods

boolean
equals(Object other)
@NonNull String

unique identifier of the component that was interacted with

final @NonNull Map<@NonNull StringObject>

map containing custom properties and metadata associated with this action

final @NonNull String

name of the event

@NonNull String

unique identifier of the surface where the action occurred

long

timestamp of when the action occurred, represented as milliseconds since the epoch

int
@NonNull String

Public constructors

A2uiEventAction

public A2uiEventAction(
    @NonNull String surfaceId,
    @NonNull String componentId,
    long timestamp,
    @NonNull String eventName,
    @NonNull Map<@NonNull StringObject> context
)

Public methods

equals

public boolean equals(Object other)

getComponentId

public @NonNull String getComponentId()

unique identifier of the component that was interacted with

getContext

Added in 1.0.0-alpha01
public final @NonNull Map<@NonNull StringObjectgetContext()

map containing custom properties and metadata associated with this action

getEventName

Added in 1.0.0-alpha01
public final @NonNull String getEventName()

name of the event

getSurfaceId

public @NonNull String getSurfaceId()

unique identifier of the surface where the action occurred

getTimestamp

public long getTimestamp()

timestamp of when the action occurred, represented as milliseconds since the epoch

hashCode

public int hashCode()

toString

public @NonNull String toString()