Skip to content

PHPickerFilter.imagesFilter static property ​

The PHPickerFilter.imagesFilter static property is a predefined filter that shows only images, including Live Photos.

Value ​

A PHPickerFilter.

Examples ​

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

Effect: The console prints true. A photo picker created with this configuration shows only images, including Live Photos, and no videos. The on-screen effect is not verified in the simulator.

Corresponding iOS API ​

PHPickerFilter.imagesFilter.

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