Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
iOSApp.SetDidReceiveMemoryWarningScript
Sets the script to be run when app gets a memory warning.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| iOSApp | 7.4 | No | No | No | No | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Filename | The database file name where the script is located. | "test.fmp12" | |
| ScriptName | The script name. | "MyScript" | |
| Parameter | The script parameter. | Optional |
Result
Returns OK or error.
Description
Sets the script to be run when app gets a memory warning.Posted when the app receives a warning from the operating system about low memory availability.
Version 10.2 and newer stores this in preferences, so it is restored if app when app starts again after being killed in background.
Examples
Set trigger:
MBS( "iOSApp.SetDidReceiveMemoryWarningScript"; Get(Filename); "MemoryTrigger")
Install trigger:
Set Variable [ $r ; Value: MBS( "iOSApp.SetDidReceiveMemoryWarningScript"; Get(FileName); "Trigger"; "DidReceiveMemoryWarningScript" ) ]
See also
Created 23th September 2017, last changed 16th March 2020
iOSApp.SetDidReceiveMemoryWarningEvaluate - iOSApp.SetIdleTimerDisabled
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins