DocumentCameraScan.Initialize
-----------------------------

Initializes the document camera scan functions.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DocumentCameraScan](component_DocumentCameraScan.md) | [10.0](newinversion100.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "DocumentCameraScan.Initialize" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Initializes the document camera scan functions.  
Requires iOS 13 or newer.  
### Examples

Script to initialize:

 # Initialize document camera scanner   
\#   
If \[ MBS ("[DocumentCameraScan.IsInitialized](DocumentCameraScanIsInitialized.md)") = 0 \]   
 Set Variable \[ $r ; Value: MBS ("DocumentCameraScan.Initialize") \]   
 If \[ MBS ("IsError") \]   
 Show Custom Dialog \[ "Failed to initialize" ; $r \]   
 Else If \[ MBS ("[DocumentCameraScan.Supported](DocumentCameraScanSupported.md)") = 0 \]   
 Show Custom Dialog \[ "Not supported on this device." \]   
 End If  
End If  
### See also

- [DocumentCameraScan.IsInitialized](DocumentCameraScanIsInitialized.md)
- [DocumentCameraScan.Scan](DocumentCameraScanScan.md)
- [DocumentCameraScan.SetScript](DocumentCameraScanSetScript.md)
- [DocumentCameraScan.Supported](DocumentCameraScanSupported.md)
- [DocumentCameraScan.Title](DocumentCameraScanTitle.md)
- [DocumentCameraScan.Visible](DocumentCameraScanVisible.md)
- [IsError](IsError.md)

### Example Databases

- [iOS/Examples/DocumentCameraScan test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/DocumentCameraScan%20test.shtml#4ScriptAnchor_)

### Blog Entries

- [Document Camera Scan functions for FileMaker iOS SDK](https://www.mbsplugins.de/archive/2020-01-08/Document_Camera_Scan_functions/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 6th January 2020 , last changed 24th January 2020

  
[DocumentCameraScan.ErrorMessage](DocumentCameraScanErrorMessage.md) - [DocumentCameraScan.IsInitialized](DocumentCameraScanIsInitialized.md)

[HTML Version](DocumentCameraScanInitialize.shtml)