Event

public data final class Event


Defines an event that will be triggered when the specified condition is met.

Summary

Nested types

Event.Companion
Event.TriggerType

Whether or not repeated events should be triggered.

Event.TriggerType.Companion

Public fields

final @NonNull DataTypeCondition

DataTypeCondition which must be met for the event to be triggered.

final @NonNull Event.TriggerType

Public constructors

Event(
    @NonNull DataTypeCondition dataTypeCondition,
    @NonNull Event.TriggerType triggerType
)

Public methods

int
final boolean

Does the provided DataPoint satisfy the event condition.

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

dataTypeCondition

@NonNull
public final @NonNull DataTypeCondition dataTypeCondition

DataTypeCondition which must be met for the event to be triggered.

triggerType

@NonNull
public final @NonNull Event.TriggerType triggerType

Public constructors

Event

public final Event(
    @NonNull DataTypeCondition dataTypeCondition,
    @NonNull Event.TriggerType triggerType
)

Public methods

describeContents

@NonNull
public int describeContents()

isTriggered

@NonNull
public final boolean isTriggered(@NonNull DataPoint dataPoint)

Does the provided DataPoint satisfy the event condition.

Throws
kotlin.IllegalArgumentException

if the provided data point is not of the same data type as the condition itself.

writeToParcel

@NonNull
public void writeToParcel(@NonNull Parcel dest, int flags)