RegistrationResponse
class RegistrationResponse
| kotlin.Any | |
| ↳ | android.app.personalcontext.understander.RegistrationResponse |
Response options for a prompt to enable/register a personal context understander. RegistrationResponse takes in a RegistrationRequest at construction and is sent via PersonalContextManager.respondToUnderstanderRegistrationRequest(RegistrationResponse). The response field is used to declare the user's intent. RESPONSE_PROCEED is used to indicate the user wants to move forward with the registration process. RESPONSE_CANCEL indicates the user wants to cancel the flow.
Summary
| Constants | |
|---|---|
| static Int |
Cancel the understander registration request. |
| static Int |
Proceed with registering the understander. |
| static Int |
Unknown response to an understander registration request. |
| Public constructors | |
|---|---|
RegistrationResponse(request: RegistrationRequest, response: Int)Creates a new RegistrationResponse. |
|
| Public methods | |
|---|---|
| RegistrationRequest |
Returns the RegistrationRequest associated with this response. |
| Int |
Returns the response code. |
Constants
RESPONSE_CANCEL
static val RESPONSE_CANCEL: Int
Cancel the understander registration request.
Value: 2RESPONSE_PROCEED
static val RESPONSE_PROCEED: Int
Proceed with registering the understander.
Value: 1RESPONSE_UNKNOWN
static val RESPONSE_UNKNOWN: Int
Unknown response to an understander registration request.
Value: 0Public constructors
RegistrationResponse
RegistrationResponse(
request: RegistrationRequest,
response: Int)
Creates a new RegistrationResponse.
| Parameters | |
|---|---|
request |
RegistrationRequest: This value cannot be null. |
response |
Int: Value is one of the following: |
Public methods
getRequest
fun getRequest(): RegistrationRequest
Returns the RegistrationRequest associated with this response.
| Return | |
|---|---|
RegistrationRequest |
This value cannot be null. |
getResponse
fun getResponse(): Int
Returns the response code.
| Return | |
|---|---|
Int |
Value is one of the following: |