« FileMaker Excellence … | Home | New MacBook Pro teste… »

QLPreviewPanel functions for iOS

As you may know MacOS and iOS provide the QLPreview functions to provide previews of files. For MacOS, the QuickLookUI frameworks offers the QLPreviewPanel class and for iOS we have QLPreviewController class. Both allow us to load some files and show the as preview.

We add QLPreviewPanel functions for iOS with next plugin release. The reason is that we want to add the feature to show a preview of a 3D object there. As Apple adds new functions for Augmented Reality, you get new 3D objects to place in scenes. And if you have those objects in your FileMaker container fields, you can now preview them right in your FileMaker iOS solution.

QuickLook Preview can show:
  • iWork documents
  • Microsoft Office documents (Office ‘97 and newer)
  • Rich Text Format (RTF) documents
  • PDF files
  • Images
  • Text files
  • Comma-separated value (csv) files
  • 3D models in USDZ format (with both standalone and AR views for viewing the model) for iOS 12 or newer.
Our new QLPreviewPanel.AddContainer function allows you to pass a container directly into the panel. If it is saved external, we can pass through pass directly. Otherwise, we write a temporary file, which is deleted later when panel is cleared or app quits.

# Prepare
If [ MBS("QLPreviewPanel.IsVisible") ]
  Set Variable [ $r ; Value: MBS("QLPreviewPanel.Hide") ]
End If
Set Variable [ $r ; Value: MBS("QLPreviewPanel.Clear") ]
# Add all containers you have
Set Variable [ $r ; Value: MBS("QLPreviewPanel.AddContainer"; PlaceHolder::Container; "Stratocaster") ]
# Run it!
Set Variable [ $r ; Value: MBS("QLPreviewPanel.Show") ]

So please try the new functions with next prerelease and let me know how they work for you! FileMaker Plugin
15 08 18 - 10:06

Start Chat