Added in version 37.2

UnderstandRequest


public final class UnderstandRequest
extends Object

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


Request data for ContextUnderstanderService.onUnderstand.

Summary

Public methods

int getDestinations()

Gets the set of destinations that insights can be delivered to.

Set<ContextHint> getHints()

Gets hints that can be used to generate an insight.

String getSessionId()

Gets the active egress validation session ID.

Inherited methods

Public methods

getDestinations

Added in version 37.2
public int getDestinations ()

Gets the set of destinations that insights can be delivered to.

Returns
int a flag set composed of ERROR(PersonalContextManager.Destination/android.service.personalcontext.PersonalContextManager.Destination PersonalContextManager.Destination) flags.

getHints

Added in version 37.2
public Set<ContextHint> getHints ()

Gets hints that can be used to generate an insight.

Returns
Set<ContextHint>

getSessionId

Added in version 37.2
public String getSessionId ()

Gets the active egress validation session ID.

This value can be set as the session ID for an AssistantQueryRequest.Query.

This value will be null if egress functionality is not available.

Returns
String