HandoffActivityParams
class HandoffActivityParams : Parcelable
| kotlin.Any | |
| ↳ | android.app.HandoffActivityParams |
Represents options specifying how an activity will be handed off to other devices.
This object is passed as an optional argument to android.app.Activity#enableHandoff(), and will dictate when the platform calls android.app.Activity#onHandoffActivityDataRequested() on the specified activity.
Summary
| Nested classes | |
|---|---|
|
Builder for |
|
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Boolean | |
| Int |
hashCode() |
| Boolean |
Returns whether the activity should be handed off even if the package is not installed on the remote device. |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<HandoffActivityParams!> | |
Public methods
describeContents
fun describeContents(): Int
hashCode
fun hashCode(): Int
isAllowHandoffWithoutPackageInstalled
fun isAllowHandoffWithoutPackageInstalled(): Boolean
Returns whether the activity should be handed off even if the package is not installed on the remote device. If this is set to false, this activity will not appear as a Handoff suggestion on devices which do not have the package installed. If this is set to true, the activity must provide a URL to perform web handoff. If one is not provided, the user will be shown an error message.
| Return | |
|---|---|
Boolean |
whether the activity should be handed off even if the package is not installed on the remote device. |
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<HandoffActivityParams!>