Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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): 0.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
- New in MBS FileMaker Plugin 13.1
- Neues MBS Plugin 13.1 für Claris FileMaker
- MBS Plugin 13.1 for Claris FileMaker
- MBS FileMaker Plugin, version 13.1pr1
This function checks for a license.
Created 27th January 2023, last changed 8th September 2023