> Documentation index: https://developer.android.com/reference/llms.txt

Summary: [Ctors](https://developer.android.com/reference/android/app/HandoffActivityParams.Builder.md.txt#pubctors) \| [Methods](https://developer.android.com/reference/android/app/HandoffActivityParams.Builder.md.txt#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/HandoffActivityParams.Builder.md.txt#inhmethods)

# HandoffActivityParams.Builder

*** ** * ** ***


`
public
static
final

class
HandoffActivityParams.Builder
`


`

extends Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.md.txt) ||
| ↳ | android.app.HandoffActivityParams.Builder |

<br />

*** ** * ** ***

Builder for `HandoffActivityParams`.

## Summary

| ### Public constructors ||
|---|---|
| ` Builder() ` Creates a new builder for `HandoffActivityParams`. |

| ### Public methods ||
|---|---|
| ` HandoffActivityParams` | ` build() ` Builds the `HandoffActivityParams` object. |
| ` HandoffActivityParams.Builder` | ` setAllowHandoffWithoutPackageInstalled(boolean allowHandoffWithoutPackageInstalled) ` Sets whether the activity should be handed off even if the package is not installed on the remote device. |

### Inherited methods

From class `

java.lang.Object

` `


Object` `
clone()
`

Creates and returns a copy of this object.


`


boolean` `
equals(Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
finalize()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

Class<?>` `
getClass()
`

Returns the runtime class of this `Object`.


`


int` `
hashCode()
`

Returns a hash code value for the object.


`


final

void` `
notify()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
notifyAll()
`

Wakes up all threads that are waiting on this object's monitor.


`


String` `
toString()
`

Returns a string representation of the object.


`


final

void` `
wait(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
wait(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
wait()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


## Public constructors

### Builder

```
public Builder ()
```

Creates a new builder for `HandoffActivityParams`.

<br />

| Returns ||
|---|---|
|   | the builder. <br /> |

## Public methods

### build

```
public HandoffActivityParams build ()
```

Builds the `HandoffActivityParams` object.

<br />

| Returns ||
|---|---|
| `HandoffActivityParams` | the `HandoffActivityParams` object. This value cannot be `null`. <br /> |

### setAllowHandoffWithoutPackageInstalled

```
public HandoffActivityParams.Builder setAllowHandoffWithoutPackageInstalled (boolean allowHandoffWithoutPackageInstalled)
```

Sets 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 set to `true`, `ERROR(Activity.onHandoffActivityDataRequested()/android.app.Activity#onHandoffActivityDataRequested() Activity.onHandoffActivityDataRequested())` will be
called even if the package is not installed on the remote device. The returned `HandoffActivityData` must contain a web URL - either created via `ERROR(HandoffActivityData.createWebHandoffData(String)/android.app.HandoffActivityData#createWebHandoffData(java.lang.String) HandoffActivityData.createWebHandoffData(String))` or by setting a fallback URL via `HandoffActivityData.Builder.setFallbackUri(android.net.Uri)`. If one is not present, the
user will be shown an error message.

<br />

| Parameters ||
|---|---|
| `allowHandoffWithoutPackageInstalled` | `boolean`: whether the activity should be handed off even if the package is not installed on the remote device. <br /> |

| Returns ||
|---|---|
| `HandoffActivityParams.Builder` | the builder. This value cannot be `null`. <br /> |