Enumeration: AndroidVisibility

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

Interface used to define the visibility of an Android notification.

Use with the visibility property on the notification.

View the Visibility documentation to learn more.

Default value is AndroidVisibility.PRIVATE.

Platform

android

Enumeration Members

PRIVATE

PRIVATE: 0

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

Show the notification on all lockscreens, but conceal sensitive or private information on secure lockscreens.

PUBLIC

PUBLIC: 1

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

Show this notification in its entirety on all lockscreens.

SECRET

SECRET: -1

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

Do not reveal any part of this notification on a secure lockscreen.

Useful for notifications showing sensitive information such as banking apps.