FeedbackRequest


class FeedbackRequest : Parcelable
kotlin.Any
   ↳ android.app.personalcontext.understander.FeedbackRequest

Request details for user feedback. FeedbackRequest is provided to the understander's feedback activity by being set as the android.service.personalcontext.PersonalContextManager#EXTRA_FEEDBACK_REQUEST on the provided android.app.PendingIntent. The properties retrieved by getProperties() contain details about initial feedback and other context of the feedback initiation.

Summary

Constants
static Int

Negative feedback property.

static Int

Positive feedback property.

static Int

Unknown feedback property.

Inherited constants
Public constructors
FeedbackRequest(source: ContextInsight, properties: Int)

Creates a new FeedbackRequest with the given source and properties.

Public methods
Int

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

Int

Returns the set of feedback property flags for this request.

ContextInsight

Returns the source ContextInsight that this feedback request is for.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<FeedbackRequest!>

Constants

FEEDBACK_PROPERTY_NEGATIVE

static val FEEDBACK_PROPERTY_NEGATIVE: Int

Negative feedback property. Indicates that the user has provided negative feedback, signifying that the personal context insight was unhelpful or incorrect.

This property is mutually exclusive with FEEDBACK_PROPERTY_POSITIVE.

Value: 2

FEEDBACK_PROPERTY_POSITIVE

static val FEEDBACK_PROPERTY_POSITIVE: Int

Positive feedback property. Indicates that the user has provided positive feedback, signifying that the personal context insight was helpful or correct.

This property is mutually exclusive with FEEDBACK_PROPERTY_NEGATIVE.

Value: 1

FEEDBACK_PROPERTY_UNKNOWN

static val FEEDBACK_PROPERTY_UNKNOWN: Int

Unknown feedback property.

Value: 0

Public constructors

FeedbackRequest

FeedbackRequest(
    source: ContextInsight,
    properties: Int)

Creates a new FeedbackRequest with the given source and properties.

Parameters
source ContextInsight: This value cannot be null.
properties Int: Value is either 0 or a combination of the following:

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

getProperties

fun getProperties(): Int

Returns the set of feedback property flags for this request.

Return
Int a flag set composed of android.app.personalcontext.understander.FeedbackRequest.FeedbackProperty flags.
Value is either 0 or a combination of the following:

getSource

fun getSource(): ContextInsight

Returns the source ContextInsight that this feedback request is for.

Return
ContextInsight This value cannot be null.

writeToParcel

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

Flatten this object in to a Parcel.

Parameters
dest Parcel: 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<FeedbackRequest!>