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 |
Public methods | |
|---|---|
PendingIntent
|
getFeedbackActivity()
Gets the |
ContextInsight
|
getResponseForDestination(int destination)
Gets the response insight for the given destination, if any. |
InsightVisualizerSession
|
getVisualizerSession()
Gets the |
Inherited methods | |
|---|---|
Public methods
getFeedbackActivity
public PendingIntent getFeedbackActivity ()
Gets the PendingIntent that can be used to launch the feedback activity.
| Returns | |
|---|---|
PendingIntent |
This value may be null. |
getResponseForDestination
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
public InsightVisualizerSession getVisualizerSession ()
Gets the InsightVisualizerSession to provide interactive visualizations to a client
app, if any.
| Returns | |
|---|---|
InsightVisualizerSession |
This value may be null. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-28 UTC.