# Uses of Interface
java.awt.desktop.SystemEventListener

Packages that use SystemEventListener
Package
Description
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.awt.desktop
Provides interfaces and classes for interaction with various desktop capabilities.

## Uses of SystemEventListener in java.awt

Methods in java.awt with parameters of type SystemEventListener
Modifier and Type
Method
Description
`void`
Desktop.`addAppEventListener(SystemEventListener listener)`
Adds sub-types of `SystemEventListener` to listen for notifications from the native system.
`void`
Desktop.`removeAppEventListener(SystemEventListener listener)`
Removes sub-types of `SystemEventListener` to listen for notifications from the native system.

## Uses of SystemEventListener in java.awt.desktop

Subinterfaces of SystemEventListener in java.awt.desktop
Modifier and Type
Interface
Description
`interface`
`AppForegroundListener`
Implementors are notified when the app becomes the foreground app and when it is no longer the foreground app.
`interface`
`AppHiddenListener`
Implementors are notified when the app is hidden or shown by the user.
`interface`
`AppReopenedListener`
Implementors receive notification when the app has been asked to open again.
`interface`
`ScreenSleepListener`
Implementors receive notification when the displays attached to the system have entered power save sleep.
`interface`
`SystemSleepListener`
Implementors receive notification as the system is entering sleep, and after the system wakes.
`interface`
`UserSessionListener`
Implementors receive notification when the user session changes.