Skip to content

PHPickerFilter.livePhotosFilter static property ​

The PHPickerFilter.livePhotosFilter static property is a predefined filter that shows only Live Photos: photos that record a short clip before and after the shot and move when you press and hold them.

Value ​

A PHPickerFilter.

Examples ​

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

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

Corresponding iOS API ​

PHPickerFilter.livePhotosFilter.

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