Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

ContinuityCamera.CanImport

Checks whether we can import.

Component Version macOS Windows Linux Server iOS SDK
ContinuityCamera 13.1 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "ContinuityCamera.CanImport"; Type )   More

Parameters

Parameter Description Example
Type Pass 0 for Photo (default) or 1 for document.
Pass 2 for drawing sketch.
0

Result

Returns 1, 0 or error.

Description

Checks whether we can import.
This is a preflight operation for ContinuityCamera.Import to know upfront whether to show a button in the GUI.
May report 0 if run in data viewer, with debugger or if a modal dialog is open.

Examples

Check whether we can import picture:

Set Variable [ $r ; Value: MBS( "ContinuityCamera.CanImport"; 0 ) ]
If [ $r = 1 ]
    Show Custom Dialog [ "iPhone import possible." ]
Else
    Show Custom Dialog [ "iPhone import not possible." ]
End If

See also

Release notes

Blog Entries

This function checks for a license.

Created 26th January 2023, last changed 26th January 2023


Container.WriteFile - ContinuityCamera.Clear

💬 Ask a question or report a problem