Skip to main content

suspend

Type

message

Summary

Sent to the current card when the application moves to the background.

Syntax

suspend

Description

Handle the suspend message if you want to perform some action when the application is made inactive.

The suspend message is sent whenever the user switches to another program.

The actual switch is not triggered by the suspend message, so trapping the message and not allowing it to pass does not prevent the user from switching out of the application.

Examples

on suspend
hide stack "Toolbar"
end suspend

control structure: pass

glossary: application, current card, message, trap

message: resume, shutdown, suspendStack

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?