# `Mob.Photos`
[🔗](https://github.com/genericjam/mob/blob/main/lib/mob/photos.ex#L1)

Photo / video library picker.

On iOS 14+ no permission is required (the picker itself is sandboxed).
On Android, `READ_MEDIA_IMAGES` / `READ_MEDIA_VIDEO` may be needed.

Results arrive as:

    handle_info({:photos, :picked,    items},   socket)
    handle_info({:photos, :cancelled},           socket)

Each item in `items` is:

    %{path: "/tmp/mob_pick_xxx.jpg", type: :image | :video,
      width: 1920, height: 1080}

iOS: `PHPickerViewController`. Android: `PickMultipleVisualMedia`.

# `pick`

```elixir
@spec pick(
  Mob.Socket.t(),
  keyword()
) :: Mob.Socket.t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
