UnderstandResult


public final class UnderstandResult
extends Object

java.lang.Object
   ↳ android.service.personalcontext.understander.UnderstandResult


Result for ContextUnderstanderService.onUnderstand(UnderstandRequest).

In response to an UnderstandRequest, the understander can provide a ContextInsight for each destination specified in UnderstandRequest.getDestinations(), along with a feedback activity that will be invoked when the user provides feedback for an insight.

Summary

Nested classes

class UnderstandResult.Builder

Builder for creating an UnderstandResult

Public methods

PendingIntent getFeedbackActivity()

Gets the PendingIntent that can be used to launch the feedback activity.

ContextInsight getResponseForDestination(int destination)

Gets the response insight for the given destination, if any.

InsightVisualizerSession getVisualizerSession()

Gets the InsightVisualizerSession to provide interactive visualizations to a client app, if any.

Inherited methods

Public methods

getFeedbackActivity

Added in version 37.2
public PendingIntent getFeedbackActivity ()

Gets the PendingIntent that can be used to launch the feedback activity.

Returns
PendingIntent This value may be null.

getResponseForDestination

Added in version 37.2
public ContextInsight getResponseForDestination (int destination)

Gets the response insight for the given destination, if any.

Parameters
destination int

Returns
ContextInsight This value may be null.

getVisualizerSession

Added in version 37.2
public InsightVisualizerSession getVisualizerSession ()

Gets the InsightVisualizerSession to provide interactive visualizations to a client app, if any.

Returns
InsightVisualizerSession This value may be null.