Skip to content

PHPickerFilter.videosFilter static property ​

The PHPickerFilter.videosFilter static property is a predefined filter that shows only videos.

Value ​

A PHPickerFilter.

Examples ​

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

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

Corresponding iOS API ​

PHPickerFilter.videosFilter.

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