[**react-native-notify-kit**](react-native/reference/index)

---

[react-native-notify-kit](react-native/reference/index) / AndroidLaunchActivityFlag

# Enumeration: AndroidLaunchActivityFlag

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1383](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1383)

An enum representing the various flags that can be passed along to `launchActivityFlags` on `NotificationPressAction`.

These flags are added to the Android [Intent](https://developer.android.com/reference/android/content/Intent.html) that launches your activity.

These are only required if you need to customise the behaviour of your activities, in most cases you might not need these.

## Platform

android

## Enumeration Members

### BROUGHT_TO_FRONT

> **BROUGHT_TO_FRONT**: `8`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1427](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1427)

See [FLAG_ACTIVITY_BROUGHT_TO_FRONT](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_BROUGHT_TO_FRONT) on the official Android documentation for more information.

---

### CLEAR_TASK

> **CLEAR_TASK**: `16`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1471](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1471)

See [FLAG_ACTIVITY_CLEAR_TASK](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TASK) on the official Android documentation for more information.

---

### CLEAR_TOP

> **CLEAR_TOP**: `4`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1407](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1407)

See [FLAG_ACTIVITY_CLEAR_TOP](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP) on the official Android documentation for more information.

---

### ~~CLEAR_WHEN_TASK_RESET~~

> **CLEAR_WHEN_TASK_RESET**: `11`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1446](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1446)

#### Deprecated

Android deprecated `FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET` in API 21.
Use `AndroidLaunchActivityFlag.NEW_DOCUMENT` for new code. This value remains
supported for backward compatibility with existing apps and persisted payloads.

See [FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET) on the official Android documentation for more information.

---

### EXCLUDE_FROM_RECENTS

> **EXCLUDE_FROM_RECENTS**: `7`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1422](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1422)

See [FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS) on the official Android documentation for more information.

---

### FORWARD_RESULT

> **FORWARD_RESULT**: `5`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1412](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1412)

See [FLAG_ACTIVITY_FORWARD_RESULT](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_FORWARD_RESULT) on the official Android documentation for more information.

---

### LAUNCH_ADJACENT

> **LAUNCH_ADJACENT**: `19`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1486](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1486)

See [FLAG_ACTIVITY_LAUNCH_ADJACENT](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_LAUNCH_ADJACENT) on the official Android documentation for more information.

---

### LAUNCHED_FROM_HISTORY

> **LAUNCHED_FROM_HISTORY**: `10`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1437](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1437)

See [FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) on the official Android documentation for more information.

---

### MATCH_EXTERNAL

> **MATCH_EXTERNAL**: `20`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1491](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1491)

See [FLAG_ACTIVITY_MATCH_EXTERNAL](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_MATCH_EXTERNAL) on the official Android documentation for more information.

---

### MULTIPLE_TASK

> **MULTIPLE_TASK**: `3`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1402](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1402)

See [FLAG_ACTIVITY_MULTIPLE_TASK](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_MULTIPLE_TASK) on the official Android documentation for more information.

---

### NEW_DOCUMENT

> **NEW_DOCUMENT**: `12`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1451](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1451)

See [FLAG_ACTIVITY_NEW_DOCUMENT](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_DOCUMENT) on the official Android documentation for more information.

---

### NEW_TASK

> **NEW_TASK**: `2`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1397](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1397)

See [FLAG_ACTIVITY_NEW_TASK](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK) on the official Android documentation for more information.

---

### NO_ANIMATION

> **NO_ANIMATION**: `15`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1466](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1466)

See [FLAG_ACTIVITY_NO_ANIMATION](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NO_ANIMATION) on the official Android documentation for more information.

---

### NO_HISTORY

> **NO_HISTORY**: `0`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1387](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1387)

See [FLAG_ACTIVITY_NO_HISTORY](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NO_HISTORY) on the official Android documentation for more information.

---

### NO_USER_ACTION

> **NO_USER_ACTION**: `13`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1456](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1456)

See [FLAG_ACTIVITY_NO_USER_ACTION](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NO_USER_ACTION) on the official Android documentation for more information.

---

### PREVIOUS_IS_TOP

> **PREVIOUS_IS_TOP**: `6`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1417](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1417)

See [FLAG_ACTIVITY_PREVIOUS_IS_TOP](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_PREVIOUS_IS_TOP) on the official Android documentation for more information.

---

### REORDER_TO_FRONT

> **REORDER_TO_FRONT**: `14`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1461](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1461)

See [FLAG_ACTIVITY_REORDER_TO_FRONT](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT) on the official Android documentation for more information.

---

### RESET_TASK_IF_NEEDED

> **RESET_TASK_IF_NEEDED**: `9`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1432](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1432)

See [FLAG_ACTIVITY_RESET_TASK_IF_NEEDED](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_RESET_TASK_IF_NEEDED) on the official Android documentation for more information.

---

### RETAIN_IN_RECENTS

> **RETAIN_IN_RECENTS**: `18`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1481](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1481)

See [FLAG_ACTIVITY_RETAIN_IN_RECENTS](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_RETAIN_IN_RECENTS) on the official Android documentation for more information.

---

### SINGLE_TOP

> **SINGLE_TOP**: `1`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1392](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1392)

See [FLAG_ACTIVITY_SINGLE_TOP](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_SINGLE_TOP) on the official Android documentation for more information.

---

### TASK_ON_HOME

> **TASK_ON_HOME**: `17`

Defined in: [packages/react-native/src/types/NotificationAndroid.ts:1476](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationAndroid.ts#L1476)

See [FLAG_ACTIVITY_TASK_ON_HOME](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_TASK_ON_HOME) on the official Android documentation for more information.
