ActionResult
class ActionResult : Parcelable
| kotlin.Any | |
| ↳ | android.companion.ActionResult |
A result reported by a companion app in response to an ActionRequest.
Summary
| Nested classes | |
|---|---|
|
Builder for creating an |
|
| Constants | |
|---|---|
| static Int |
A result code indicating that the requested activation was completed successfully. |
| static Int |
A result code indicating that a previously active action is now inactive. |
| static Int |
A result code indicating that the requested activation failed. |
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Boolean | |
| Int | |
| Int | |
| Int |
hashCode() |
| String |
toString() |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<ActionResult!> | |
Constants
RESULT_ACTIVATED
static val RESULT_ACTIVATED: Int
A result code indicating that the requested activation was completed successfully. This is sent in response to an ActionRequest.OP_ACTIVATE request.
Value: 0RESULT_DEACTIVATED
static val RESULT_DEACTIVATED: Int
A result code indicating that a previously active action is now inactive. This can be sent for two reasons: 1. As a successful response to an ActionRequest.OP_DEACTIVATE request. 2. Action was failed after initially succeed.
Value: 2RESULT_FAILED_TO_ACTIVATE
static val RESULT_FAILED_TO_ACTIVATE: Int
A result code indicating that the requested activation failed. This is sent in response to an ActionRequest.OP_ACTIVATE request.
Value: 1Public methods
describeContents
fun describeContents(): Int
getAction
fun getAction(): Int
| Return | |
|---|---|
Int |
the action this result refers to, e.g. ActionRequest.REQUEST_NEARBY_SCANNING. Value is one of the following: |
getResultCode
fun getResultCode(): Int
| Return | |
|---|---|
Int |
the result code, e.g., RESULT_ACTIVATED. Value is one of the following: |
hashCode
fun hashCode(): Int
toString
fun toString(): String
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following:
|
Properties
CREATOR
static val CREATOR: Parcelable.Creator<ActionResult!>