# LaunchExternalLinkParams.Builder


```
public final class LaunchExternalLinkParams.Builder
```

<br />

*** ** * ** ***

Helps construct `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams` that are used to initiate the installation of an external app.

## Summary

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams` | `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder#build()()` Returns `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams`. |
| `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder#setBillingProgram(int)(int billingProgram)` Sets the billing program. |
| `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder#setExternalTransactionToken(java.lang.String)(https://developer.android.com/reference/java/lang/String.html externalTransactionToken)` Sets the external transaction token. |
| `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder#setLaunchMode(int)(int launchMode)` Sets the external link flow launch mode. |
| `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder#setLinkType(int)(int linkType)` Sets the external link type. |
| `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams.Builder#setLinkUri(android.net.Uri)(https://developer.android.com/reference/android/net/Uri.html linkUri)` The URI where the content will be accessed from. |

## Public methods

### build

```
public LaunchExternalLinkParams build()
```

Returns `https://developer.android.com/reference/com/android/billingclient/api/LaunchExternalLinkParams`.

### setBillingProgram

```
public LaunchExternalLinkParams.Builder setBillingProgram(int billingProgram)
```

Sets the billing program.

| Parameters |
|---|---|
| `int billingProgram` | The billing program being used for this external link. |

### setExternalTransactionToken

```
public LaunchExternalLinkParams.Builder setExternalTransactionToken(String externalTransactionToken)
```

Sets the external transaction token.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html externalTransactionToken` | The external transaction token. |

### setLaunchMode

```
public LaunchExternalLinkParams.Builder setLaunchMode(int launchMode)
```

Sets the external link flow launch mode. Must be set to LAUNCH_IN_EXTERNAL_BROWSER_OR_APP for app downloads.

| Parameters |
|---|---|
| `int launchMode` | The external link launch mode. |

### setLinkType

```
public LaunchExternalLinkParams.Builder setLinkType(int linkType)
```

Sets the external link type.

| Parameters |
|---|---|
| `int linkType` | The external link type. |

### setLinkUri

```
public LaunchExternalLinkParams.Builder setLinkUri(Uri linkUri)
```

The URI where the content will be accessed from. For app installs, this URI must be registered and approved in Google Play Console.