Open the native photos and videos picker on Android and iOS
Android and iOS offer a native interface for users to browse and select photos and videos from their device. FileKit provides a unified API to open the gallery picker dialog on both platforms.
To open the gallery picker dialog on Android and iOS, simply pass Image
, Video
, or ImageAndVideo
to the type
parameter:
On both Android and iOS, you can set a limit on the number of items a user can select by passing the maxItems
parameter to FileKitMode.Multiple()
:
Open the native photos and videos picker on Android and iOS
Android and iOS offer a native interface for users to browse and select photos and videos from their device. FileKit provides a unified API to open the gallery picker dialog on both platforms.
To open the gallery picker dialog on Android and iOS, simply pass Image
, Video
, or ImageAndVideo
to the type
parameter:
On both Android and iOS, you can set a limit on the number of items a user can select by passing the maxItems
parameter to FileKitMode.Multiple()
: