Skip to content

PHPickerFilter.depthEffectPhotosFilter static property ​

The PHPickerFilter.depthEffectPhotosFilter static property is a predefined filter that shows only photos with a depth effect (taken in Portrait mode).

Value ​

A PHPickerFilter.

Examples ​

js
const config = new PHPickerConfiguration();
config.filter = PHPickerFilter.depthEffectPhotosFilter;
console.log(PHPickerFilter.depthEffectPhotosFilter === PHPickerFilter.depthEffectPhotosFilter);

Effect: The console prints true. A photo picker created with this configuration shows only photos taken in Portrait mode. The on-screen effect is not verified in the simulator.

Corresponding iOS API ​

PHPickerFilter.depthEffectPhotosFilter.

See also ​

  • PHPickerFilter: all filters and how to compare them
  • filter: the configuration property that holds the filter
  • This class belongs to the @nacrejs/photos package; see Installation