InsightEvent


class InsightEvent : Parcelable
kotlin.Any
   ↳ android.service.personalcontext.insight.interaction.InsightEvent

Provides information about an event that occurred on an insight.

Summary

Constants
static Int

Event type for when the insight is hidden from the user.

static Int

Event type for when the insight is shown to the user.

static Int

Event type for unknown events.

static Int

Event type for when the user requests attribution for the insight.

static Int

Event type for when the user dismisses the insight.

static Int

Event type reported when the user requests egress for the insight.

static Int

Event type for when the user enters negative feedback on the insight.

static Int

Event type for when the user enters positive feedback on the insight.

static Int

Event type for when the user long-presses on the insight.

static Int

Event type for when the user taps on the insight.

Inherited constants
Public methods
Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

ContextInsight

Int

Gets the type of event that occurred.

Long

Gets the system timethat the event occurred at.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<InsightEvent!>

Constants

EVENT_HIDE

static val EVENT_HIDE: Int

Event type for when the insight is hidden from the user.

Value: 2

EVENT_SHOW

static val EVENT_SHOW: Int

Event type for when the insight is shown to the user.

Value: 1

EVENT_UNKNOWN

static val EVENT_UNKNOWN: Int

Event type for unknown events.

Value: 0

EVENT_USER_ATTRIBUTION_REQUESTED

static val EVENT_USER_ATTRIBUTION_REQUESTED: Int

Event type for when the user requests attribution for the insight.

Value: 6

EVENT_USER_DISMISS

static val EVENT_USER_DISMISS: Int

Event type for when the user dismisses the insight.

Value: 5

EVENT_USER_EGRESS_REQUESTED

static val EVENT_USER_EGRESS_REQUESTED: Int

Event type reported when the user requests egress for the insight.

Value: 9

EVENT_USER_FEEDBACK_NEGATIVE

static val EVENT_USER_FEEDBACK_NEGATIVE: Int

Event type for when the user enters negative feedback on the insight.

Value: 8

EVENT_USER_FEEDBACK_POSITIVE

static val EVENT_USER_FEEDBACK_POSITIVE: Int

Event type for when the user enters positive feedback on the insight.

Value: 7

EVENT_USER_LONG_PRESS

static val EVENT_USER_LONG_PRESS: Int

Event type for when the user long-presses on the insight.

Value: 4

EVENT_USER_TAP

static val EVENT_USER_TAP: Int

Event type for when the user taps on the insight.

Value: 3

Public methods

describeContents

fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getEventInsight

fun getEventInsight(): ContextInsight

getEventType

fun getEventType(): Int

Gets the type of event that occurred.

getTimestamp

fun getTimestamp(): Long

Gets the system timethat the event occurred at.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: The Parcel in which the object should be written.
This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties

CREATOR

static val CREATOR: Parcelable.Creator<InsightEvent!>