Variable ActivityStateConst

ActivityState: {
    ACTIVE: 2;
    BACKGROUND: 0;
    FOREGROUND: 1;
} = ...

Type declaration

  • ReadonlyACTIVE: 2

    An activity is in the foreground and user can interact with it.

  • ReadonlyBACKGROUND: 0

    An activity is in the background and not visible to the user.

  • ReadonlyFOREGROUND: 1

    An activity is in the foreground, and it is visible to the user, but doesn't have focus (for example, covered by a dialog).