InsightEvent


public final class InsightEvent
extends Object implements Parcelable

java.lang.Object
   ↳ android.app.personalcontext.insight.interaction.InsightEvent


Provides information about an event that occurred on an insight.

Summary

Constants

int EVENT_HIDE

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

int EVENT_SHOW

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

int EVENT_UNKNOWN

Event type for unknown events.

int EVENT_USER_ATTRIBUTION_REQUESTED

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

int EVENT_USER_DISMISS

Event type for when the user dismisses the insight.

int EVENT_USER_EGRESS_REQUESTED

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

int EVENT_USER_FEEDBACK_NEGATIVE

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

int EVENT_USER_FEEDBACK_POSITIVE

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

int EVENT_USER_LONG_PRESS

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

int EVENT_USER_TAP

Event type for when the user taps on the insight.

Inherited constants

Fields

public static final Creator<InsightEvent> CREATOR

Public methods

int describeContents()

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

int getEventType()

Gets the type of event that occurred.

long getTimestamp()

Gets the system timethat the event occurred at.

void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Inherited methods

Constants

EVENT_HIDE

Added in version 37.2
public static final int EVENT_HIDE

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

Constant Value: 2 (0x00000002)

EVENT_SHOW

Added in version 37.2
public static final int EVENT_SHOW

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

Constant Value: 1 (0x00000001)

EVENT_UNKNOWN

Added in version 37.2
public static final int EVENT_UNKNOWN

Event type for unknown events.

Constant Value: 0 (0x00000000)

EVENT_USER_ATTRIBUTION_REQUESTED

Added in version 37.2
public static final int EVENT_USER_ATTRIBUTION_REQUESTED

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

Constant Value: 6 (0x00000006)

EVENT_USER_DISMISS

Added in version 37.2
public static final int EVENT_USER_DISMISS

Event type for when the user dismisses the insight.

Constant Value: 5 (0x00000005)

EVENT_USER_EGRESS_REQUESTED

Added in version 37.2
public static final int EVENT_USER_EGRESS_REQUESTED

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

Constant Value: 9 (0x00000009)

EVENT_USER_FEEDBACK_NEGATIVE

Added in version 37.2
public static final int EVENT_USER_FEEDBACK_NEGATIVE

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

Constant Value: 8 (0x00000008)

EVENT_USER_FEEDBACK_POSITIVE

Added in version 37.2
public static final int EVENT_USER_FEEDBACK_POSITIVE

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

Constant Value: 7 (0x00000007)

EVENT_USER_LONG_PRESS

Added in version 37.2
public static final int EVENT_USER_LONG_PRESS

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

Constant Value: 4 (0x00000004)

EVENT_USER_TAP

Added in version 37.2
public static final int EVENT_USER_TAP

Event type for when the user taps on the insight.

Constant Value: 3 (0x00000003)

Fields

CREATOR

Added in version 37.2
public static final Creator<InsightEvent> CREATOR

Public methods

describeContents

Added in version 37.2
public int describeContents ()

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.

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

getEventType

Added in version 37.2
public int getEventType ()

Gets the type of event that occurred.

Returns
int

getTimestamp

Added in version 37.2
public long getTimestamp ()

Gets the system timethat the event occurred at.

Returns
long

writeToParcel

Added in version 37.2
public void writeToParcel (Parcel dest, 
                int flags)

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.PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following: