Comments (5)
我用的kotlin并非compose开发,这个ImageEngine没法传,有办法解决吗
from matisse.
另外能否添加一个打开相机的策略,打开拍照时是默认打开前置还是后置摄像头
from matisse.
@wlwoon
1、因为考虑到引用方大概率已经集成了某个图片加载框架,因此 Matisse 通过 ImageEngine 接口将图片的加载逻辑交由引用方来实现,避免重复集成多个图片加载框架,这样你就可以自由选择要使用 Glide、Coil、还是其它图片框架了
2、你在项目中开启 compose 开关,然后导入一些必要的 compose 依赖,就可以实现 ImageEngine 了。这部分内容在 wiki 里都有详细介绍
3、后续我可以补充上
from matisse.
@wlwoon 目前 1.0.0-beta04 版本应该可以满足你的需求了,CaptureStrategy 接口新增了一个 getCaptureExtra 方法,可用于为相机设置启动参数,在接入指南中有介绍到
from matisse.
感谢!
from matisse.
Related Issues (20)
- 照片的命名规则是什么,能确保唯一性吗 HOT 1
- 能否支持仅加载相册、列表分页加载和缩略图展示 HOT 3
- Matisse 1.0.2 conflicts with glide 4.15.1 annotation dependencies, when `kotlin.jvmToolchain(8)` HOT 1
- Java项目可以用吗 HOT 1
- 类文件具有错误的版本 61.0, 应为 55.0 HOT 4
- 貌似没有传递已经选择照片的参数 HOT 3
- 大佬能写个kotlin 接入指南吗? HOT 2
- 预览在线图片 HOT 1
- uri Failed to load resource HOT 3
- compose 版图片缩放组件 ZoomImage 推荐 HOT 8
- 适配 Android 14 Selected Photos Access HOT 6
- implementation("com.github.leavesCZY:Matisse:1.0.4")更新不下来 HOT 11
- 框架是否有展示图片的接口? HOT 4
- 在写GlideImageEngine的实现时,发现和下载的demo中ImageEngine的方法参数有点差别。 HOT 3
- 我引用下面的版本没有ZoomableGlideImage类,你的demo中引用同样的版本就有这个类。 HOT 3
- 有已选的图片,再次打开选择器时能否显示已选图片嘞? HOT 2
- 有考虑支持视频预览的播放吗,或者开放一个接口出来 HOT 4
- 1.1.0 在华为平板上面拍照之后点击确认无法拿到数据。不清楚是设置问题还是代码问题。手机端正常,华为平板出现此问题。 HOT 3
- 请问选择图片的activity只能竖屏吗?我看好像是写死的 HOT 2
- 相册模式下,图片或视频二选一 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matisse.