Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
photopicker
Library ini menyediakan integrasi untuk Compose dan View
Android untuk pemilih foto tersemat.
Update Terbaru |
Rilis Stabil |
Kandidat Rilis |
Rilis Beta |
Rilis Alfa |
4 Juni 2025 |
- |
- |
- |
1.0.0-alpha01 |
Mendeklarasikan dependensi
Untuk menambahkan dependensi pada PhotoPicker, Anda harus menambahkan repositori Maven Google ke
project Anda. Baca repositori Maven Google
untuk mengetahui informasi selengkapnya.
Tambahkan dependensi untuk artefak yang diperlukan dalam file build.gradle
bagi aplikasi atau modul Anda:
Groovy
dependencies {
// For apps using Compose
implementation "androidx.photopicker:photopicker-compose:1.0.0-alpha01"
// For apps using Android views
implementation "androidx.photopicker:photopicker:1.0.0-alpha01"
}
Kotlin
dependencies {
// For apps using Compose
implementation("androidx.photopicker:photopicker-compose:1.0.0-alpha01")
// For apps using Android views
implementation("androidx.photopicker:photopicker:1.0.0-alpha01")
}
Untuk informasi dependensi selengkapnya, lihat Menambahkan dependensi build.
Masukan
Masukan Anda membantu meningkatkan kualitas Jetpack. Beri tahu kami jika Anda menemukan masalah baru atau mempunyai
masukan untuk meningkatkan kualitas library ini. Harap periksa
masalah yang sudah diketahui
dalam library ini sebelum membuat laporan baru. Anda dapat memberikan suara untuk masalah yang sudah diketahui dengan
mengklik tombol bintang.
Laporkan masalah baru
Lihat dokumentasi Issue Tracker
untuk informasi selengkapnya.
Tidak ada catatan rilis untuk artefak ini.
Versi 1.0
Versi 1.0.0-alpha01
4 Juni 2025
androidx.photopicker:photopicker:1.0.0-alpha01
, androidx.photopicker:photopicker-compose:1.0.0-alpha01
, dan androidx.photopicker:photopicker-testing:1.0.0-alpha01
dirilis. Versi 1.0.0-alpha01 berisi commit ini.
Fitur Baru
- Rilis alfa awal implementasi androidx dari PhotoPicker Tersemat yang memungkinkan aplikasi berbasis View dan Compose untuk berintegrasi dengan mudah dengan layanan Photopicker Tersemat.
Perubahan API
- Menambahkan composable
EmbeddedPhotopicker
sebagai titik entri untuk aplikasi berbasis compose.
rememberEmbeddedPhotoPickerState
dapat digunakan (direkomendasikan) atau aplikasi dapat menerapkan pengelolaan statusnya sendiri dengan antarmuka EmbeddedPhotoPickerState
.
- Menambahkan
EmbeddedPhotopickerView
sebagai titik entri untuk aplikasi berbasis tampilan.
EmbeddedPhotoPickerStateChangeListener
dapat digunakan untuk menerima callback terkait ke status di dalam PhotoPicker.
- Menambahkan
TestEmbeddedPhotoPickerProvider
untuk memungkinkan aplikasi menguji alur yang mengandalkan Photopicker Tersemat.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# photopicker\n===========\n\nAPI Reference \n[androidx.photopicker](/reference/kotlin/androidx/photopicker/package-summary) \nThis library provides an integration for Compose and Android Views for the embedded photo picker. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|---------------|----------------|-------------------|--------------|-----------------------------------------------------------------------|\n| June 4, 2025 | - | - | - | [1.0.0-alpha01](/jetpack/androidx/releases/photopicker#1.0.0-alpha01) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on PhotoPicker, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\ndependencies {\n // For apps using Compose\n implementation \"androidx.photopicker:photopicker-compose:1.0.0-alpha01\"\n // For apps using Android views\n implementation \"androidx.photopicker:photopicker:1.0.0-alpha01\"\n}\n \n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n // For apps using Compose\n implementation(\"androidx.photopicker:photopicker-compose:1.0.0-alpha01\")\n // For apps using Android views\n implementation(\"androidx.photopicker:photopicker:1.0.0-alpha01\")\n}\n \n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:1815792%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=1815792&template=2142352)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nThere are no release notes for this artifact.\n\nVersion 1.0\n-----------\n\n### Version 1.0.0-alpha01\n\nJune 4, 2025\n\n`androidx.photopicker:photopicker:1.0.0-alpha01`, `androidx.photopicker:photopicker-compose:1.0.0-alpha01`, and `androidx.photopicker:photopicker-testing:1.0.0-alpha01` are released. Version 1.0.0-alpha01 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/786176dc2284c87a0e620477608e0aca9adeff15/photopicker).\n\n**New Features**\n\n- The initial alpha release of androidx implementations of the [Embedded PhotoPicker](https://developer.android.com/reference/android/widget/photopicker/package-summary) that enable both View based and Compose based applications to easily integrate with the Embedded Photopicker service.\n\n**API Changes**\n\n- Added `EmbeddedPhotopicker` composable for as an entrypoint for compose based applications.\n - `rememberEmbeddedPhotoPickerState` can be used (recommended) or applications can implement their own state management with the `EmbeddedPhotoPickerState` interface.\n- Added `EmbeddedPhotopickerView` as an entrypoint for view based applications.\n - `EmbeddedPhotoPickerStateChangeListener` can be used to receive related callbacks to state inside the PhotoPicker.\n- Added `TestEmbeddedPhotoPickerProvider` to allow apps to test flows that rely on the Embedded Photopicker."]]