Sent to the current card when the application moves to the background.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 2.0 Security:
# Syntax
suspend
# Examples
on suspend hide stack "Toolbar" end suspend
# Description
Handle the suspend message if you want to perform some action when the application is made inactive.
The actual switch is not triggered by the suspend message, so trap the message and not allowing it to pass does not prevent the user from switching out of the application.
# Tags
# See
- **control structure:** pass - **message:** resume, shutdown, suspendStack - **glossary:** application, current card, message, trap