# LaunchHandlerClientMode

Artifact: [androidx.browser:browser](https://developer.android.com/jetpack/androidx/releases/browser) [View Source](https://cs.android.com/search?q=file:androidx/browser/trusted/LaunchHandlerClientMode.java+class:androidx.browser.trusted.LaunchHandlerClientMode) Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

*** ** * ** ***


```
public final class LaunchHandlerClientMode
```

<br />

*** ** * ** ***

Represents launch handler client mode type value of a Launch Handler API https://developer.mozilla.org/en-US/docs/Web/API/Launch_Handler_API

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/browser/trusted/LaunchHandlerClientMode#AUTO() = 0` The user agent's default launch routing behavior is used. |
| `static final int` | `https://developer.android.com/reference/androidx/browser/trusted/LaunchHandlerClientMode#FOCUS_EXISTING() = 2` If an existing web app client is open it is brought to focus but not navigated to the launch's target URL, instead the target URL is communicated via LaunchParams. |
| `static final int` | `https://developer.android.com/reference/androidx/browser/trusted/LaunchHandlerClientMode#NAVIGATE_EXISTING() = 1` If an existing web app client is open it is brought to focus and navigated to the launch's target URL. |
| `static final int` | `https://developer.android.com/reference/androidx/browser/trusted/LaunchHandlerClientMode#NAVIGATE_NEW() = 3` A new web app client is created to load the launch's target URL. |

## Constants

### AUTO

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public static final int AUTO = 0
```

The user agent's default launch routing behavior is used.

### FOCUS_EXISTING

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public static final int FOCUS_EXISTING = 2
```

If an existing web app client is open it is brought to focus but not navigated to the launch's target URL, instead the target URL is communicated via LaunchParams. If there are no existing web app clients the navigate-new behavior is used instead.

### NAVIGATE_EXISTING

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public static final int NAVIGATE_EXISTING = 1
```

If an existing web app client is open it is brought to focus and navigated to the launch's target URL. If there are no existing web app clients the navigate-new behavior is used instead.

### NAVIGATE_NEW

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public static final int NAVIGATE_NEW = 3
```

A new web app client is created to load the launch's target URL.