Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

ImagePicker.SetSourceType

Sets the source type.

Component Version macOS Windows Linux Server iOS SDK
ImagePicker 7.3 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "ImagePicker.SetSourceType"; sourceType )   More

Parameters

Parameter Description Example
sourceType The source to use to pick an image.
Can be PhotoLibrary, Camera or SavedPhotosAlbum.
"Camera"

Result

Returns OK or error.

Description

Sets the source type.
The type of picker interface to be displayed by the controller.
Prior to running the picker interface, set this value to the desired source type. The source type you set must be available and an error will be returned if it is not. If you change this property while the picker is visible, the picker interface changes to match the new value in this property.
The default value is PhotoLibrary.

See also

Example Databases

Blog Entries

Created 17th June 2017, last changed 18th June 2017


ImagePicker.SetShowsCameraControls - ImagePicker.SetVideoMaximumDuration

Feedback: Report problem or ask question.