Represents the state of an app regarding user activity It can be observed to detect inactivity.

The state is available as service system.ActivityState.

interface ActivityState {
    active: boolean;
    idleTimeOut: number;
    lastActivity: Date;
    logoutWhenInactive: boolean;
    useLocalStorage: boolean;
}

Hierarchy (View Summary)

Properties

active: boolean

Indicates if a user is active.

idleTimeOut: number

Number of milliseconds that a user is allowed to be inactive. Default: 3600000. If set to 0, automatic logout is disabled.

lastActivity: Date

Date object representing the last activity. Only used if useLocalStorage is false

logoutWhenInactive: boolean

Indicates if a user should be logged out on inactivity.

useLocalStorage: boolean

Indicates if the local storage is used to store the latest activity.