Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

ImageCapture.Devices

Queries list of devices.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ImageCapture 6.4 Yes No No No No

MBS( "ImageCapture.Devices" )

Parameters

none

Result

Returns UUIDs or error.

Description

Queries list of devices.
Returns a list of UUIDs for devices.
Please pass the UUIDs to the ImageCapture.DeviceInfo function to query details.

Before calling this function, make sure you called ImageCapture.Initialize once, best in your start script.

Examples

List devices:

Set Variable [$Devices; Value:MBS("ImageCapture.Devices")]
#loop over entries
Set Variable [$Count; Value:ValueCount($Devices)]
If [$Count > 0]
    Set Variable [$Index; Value:1]
    Loop
        #Check Device
        Set Variable [$ID; Value:GetValue($Devices; $index)]
        New Record/Request
        Set Field [Devices::Name; MBS("ImageCapture.DeviceInfo"; $ID; "name")]
        Set Field [Devices::ID; $ID]
        Set Field [Devices::Remote; Let ( [ r = MBS("ImageCapture.DeviceInfo"; $ID; "remote") ]; If(r = 1; "yes"; "no") )]
        Set Field [Devices::Shared; Let ( [ r = MBS("ImageCapture.DeviceInfo"; $ID; "shared") ]; If(r = 1; "yes"; "no") )]
        Set Field [Devices::transportType; MBS("ImageCapture.DeviceInfo"; $ID; "transportType")]
        Set Field [Devices::serialNumberString; MBS("ImageCapture.DeviceInfo"; $ID; "serialNumberString")]
        Set Field [Devices::locationDescription; MBS("ImageCapture.DeviceInfo"; $ID; "locationDescription")]
        Set Field [Devices::persistentIDString; MBS("ImageCapture.DeviceInfo"; $ID; "persistentIDString")]
        Set Field [Devices::icon; MBS("ImageCapture.DeviceInfo"; $ID; "icon")]
        Set Field [Devices::capabilities; MBS("ImageCapture.DeviceInfo"; $ID; "capabilities")]
        Commit Records/Requests [No dialog]
        #next
        Set Variable [$Index; Value:$index + 1]
        Exit Loop If [$index > $Count]
    End Loop
End If

See also

Example Databases


ImageCapture.DeviceInfo   -   ImageCapture.Features

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos