PHPickerConfiguration() constructor
The PHPickerConfiguration() constructor creates a photo picker configuration with all properties at their default values. The configuration uses the system photo library.
Syntax
new PHPickerConfiguration()Parameters
None.
Return value
A new PHPickerConfiguration. Default values of its properties:
| Property | Default |
|---|---|
selectionLimit | 1 |
filter | null |
preferredAssetRepresentationMode | 'automatic' |
selection | 'default' |
mode | 'default' |
Exceptions
None.
Examples
js
const config = new PHPickerConfiguration();
console.log(config.selectionLimit, config.filter);Result: prints 1 null.
Corresponding iOS API
-[PHPickerConfiguration init].
See also
PHPickerViewController(): creating a photo picker with a configuration- This class belongs to the
@nacrejs/photospackage; for installation, see Install first