Enumeration: AndroidLaunchActivityFlag

Defined in: packages/react-native/src/types/NotificationAndroid.ts:1349

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

These flags are added to the Android Intent 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:1393

See 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:1433

See 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:1373

See 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:1408

See 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:1388

See 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:1378

See 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:1448

See 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:1403

See 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:1453

See 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:1368

See 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:1413

See 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:1363

See 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:1428

See 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:1353

See 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:1418

See 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:1383

See 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:1423

See 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:1398

See 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:1443

See 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:1358

See 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:1438

See FLAG_ACTIVITY_TASK_ON_HOME on the official Android documentation for more information.