UnderstandResult
class UnderstandResult
| kotlin.Any | |
| ↳ | 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 | |
|---|---|
|
Builder for creating an |
|
| Public methods | |
|---|---|
| PendingIntent? |
Gets the |
| ContextInsight? |
getResponseForDestination(destination: Int)Gets the response insight for the given destination, if any. |
| InsightVisualizerSession? |
Gets the |
Public methods
getFeedbackActivity
fun getFeedbackActivity(): PendingIntent?
Gets the PendingIntent that can be used to launch the feedback activity.
| Return | |
|---|---|
PendingIntent? |
This value may be null. |
getResponseForDestination
fun getResponseForDestination(destination: Int): ContextInsight?
Gets the response insight for the given destination, if any.
| Return | |
|---|---|
ContextInsight? |
This value may be null. |
getVisualizerSession
fun getVisualizerSession(): InsightVisualizerSession?
Gets the InsightVisualizerSession to provide interactive visualizations to a client app, if any.
| Return | |
|---|---|
InsightVisualizerSession? |
This value may be null. |