iOSApp.SetWillResignActiveEvaluate
Sets the expression to be evaluated when the app is no longer active and loses focus.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
iOSApp
|
8.2 |
❌ No |
❌ No |
❌ No |
❌ No |
✅ Yes |
MBS( "iOSApp.SetWillResignActiveEvaluate"; Expression )
More
MBS(
"iOSApp.SetWillResignActiveEvaluate"; /* Sets the expression to be evaluated when the app is no longer active and loses focus. */
$Expression) /* The expression to evaluate. */
Less
Parameters
Parameter |
Description |
Example |
Expression |
The expression to evaluate. |
|
Result
Returns OK or error.
Description
Sets the expression to be evaluated when the app is no longer active and loses focus.
An app is active when it is receiving events. An active app can be said to have focus. It gains focus after being launched, loses focus when an overlay window pops up or when the device is locked, and gains focus when the device is unlocked.
Version 10.2 and newer stores this in preferences, so it is restored if app when app starts again after being killed in background.
See also
Release notes
Blog Entries
This function checks for a license.
Created 15th May 2018, last changed 16th March 2020
iOSApp.SetWillEnterForegroundScript
-
iOSApp.SetWillResignActiveScript