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:
11.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
iOSApp.AddSwipeGestureRecognizer
Add swipe gesture recognizers.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
iOSApp | 13.1 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "iOSApp.AddSwipeGestureRecognizer"; Directions; Filename; ScriptName ) More
Parameters
Parameter | Description | Example |
---|---|---|
Directions | Pass directions you like to have. Can be Right, Left, Up and Down. |
"Right, Left" |
Filename | The database file name where the script is located. | "test.fmp12" |
ScriptName | The script name. | "MyScript" |
Result
Returns OK or error.
Description
Add swipe gesture recognizers.Please make sure a layout is visible as we attach to the front layout. You may do a short pause after showing the layout for FileMaker to actually display it, before calling this function.
This may replace a recognizer from FileMaker itself and it may prevent scrolling if we consume the gesture before FileMaker.
Examples
Install a recognizer:
# Let FileMaker make the layout visible
Pause/Resume Script [ Duration (seconds): ,1 ]
# and add our recognizers
Set Variable [ $r ; Value: MBS( "iOSApp.AddSwipeGestureRecognizer"; "Right, Down, Up, Left"; Get(FileName); "Recognizer") ]
See also
Release notes
- Version 13.1
- Added iOSApp.AddSwipeGestureRecognizer and iOSApp.ClearSwipeGestureRecognizer functions to recognize a swipe gesture on your layout.
Example Databases
Blog Entries
This function checks for a paid license.
Created 27th January 2023, last changed 27th January 2023
