Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  

iOSApp.SetWillEnterForegroundEvaluate

Sets the expression to be evaluated when comes back to foreground.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
iOSApp 7.4 No No No No Yes
MBS( "iOSApp.SetWillEnterForegroundEvaluate"; Expression )   More

Parameters

Parameter Description Example value
Expression The expression to evaluate.

Result

Returns OK or error.

Description

Sets the expression to be evaluated when comes back to foreground.
Posted shortly before an app leaves the background state on its way to becoming the active app.

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

Show msgbox when app comes to foreground:

Set Variable [ $m ; Value: MBS( "iOSApp.SetWillEnterForegroundEvaluate"; "MBS(\"msgbox\"; \"Hello\")") ]

See also

Created 23th September 2017, last changed 16th March 2020


iOSApp.SetSignificantTimeChangeScript   -   iOSApp.SetWillEnterForegroundScript

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins