Interface: PowerManagerInfo

Defined in: packages/react-native/src/types/PowerManagerInfo.ts:12

The interface that represents the information returned from getPowerManagerInfo().

View the Background Restrictions documentation to learn more.

Platform

android

Properties

activity?

optional activity?: string | null

Defined in: packages/react-native/src/types/PowerManagerInfo.ts:47

The known vendor-settings activity candidate for this device manufacturer.

This value is based on Notify Kit's manufacturer mapping. It is not prevalidated with PackageManager, and it is not a guarantee that the activity is installed or accessible on the current device firmware.

Use this as a best-effort indicator of what steps the user may have to perform, in-order to prevent your app from being killed. openPowerManagerSettings() handles unavailable or rejected candidates safely.

If no known activity candidate exists, value will be null.

manufacturer?

optional manufacturer?: string

Defined in: packages/react-native/src/types/PowerManagerInfo.ts:18

The device manufacturer.

For example, Samsung.

model?

optional model?: string

Defined in: packages/react-native/src/types/PowerManagerInfo.ts:25

The device model.

For example, Galaxy S8

version?

optional version?: string

Defined in: packages/react-native/src/types/PowerManagerInfo.ts:32

The Android version

For example, Android 10