immich/mobile/pigeon
Luis Nachtigall d6c724b13b
feat(mobile): add playbackStyle to native sync API (#26541)
* feat(mobile): add playbackStyle to native sync API

Adds a `playbackStyle` field to `PlatformAsset` in the pigeon sync API so
native platforms can communicate the asset's playback style (image, video,
animated, livePhoto) to Flutter during sync.

- Add `playbackStyleValue` computed property to `PHAsset` extension (iOS)
- Populate `playbackStyle` in `toPlatformAsset()` and the full-sync path
- Update generated Dart/Kotlin/Swift files

* fix(tests): add playbackStyle to local asset test cases

* fix(tests): update playbackStyle to use integer values in local sync tests

* feat(mobile): extend playbackStyle enum to include videoLooping

* Update PHAssetExtensions.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(playback): simplify playbackStyleValue implementation by removing iOS version check

* feat(android): implement proper playbackStyle detection

* add PlatformAssetPlaybackStyle enum

* linting

---------

Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-28 03:08:51 +00:00
..
background_worker_api.dart fix: promote to foreground service before starting engine (#22517) 2025-10-07 08:49:43 -05:00
background_worker_lock_api.dart fix: prevent background worker when main app is running (#22252) 2025-09-21 20:45:47 -05:00
connectivity_api.dart fix: android background backups (#21795) 2025-09-11 12:01:15 -05:00
local_image_api.dart feat(mobile): native clients (#21459) 2026-01-24 19:34:29 +00:00
native_sync_api.dart feat(mobile): add playbackStyle to native sync API (#26541) 2026-02-28 03:08:51 +00:00
network_api.dart fix(mobile): mtls on native clients (#25802) 2026-02-05 17:42:53 +00:00
remote_image_api.dart feat(mobile): native clients (#21459) 2026-01-24 19:34:29 +00:00