9 | * Get the input stream through this interface, and obtain the picture using compatible files and FileProvider
10 | */
11 | public interface InputStreamProvider {
12 |
13 | InputStream open() throws IOException;
14 |
15 | void close();
16 |
17 | String getPath();
18 | }
19 |
--------------------------------------------------------------------------------
/mediabox/src/main/res/drawable-anydpi/ic_action_photo.xml:
--------------------------------------------------------------------------------
1 |
7 | * 提供修改压缩图片命名接口 8 | *
9 | * A functional interface (callback) that used to rename the file after compress. 10 | */ 11 | public interface OnRenameListener { 12 | 13 | /** 14 | * 压缩前调用该方法用于修改压缩后文件名 15 | *
16 | * Call before compression begins.
17 | *
18 | * @param fileName 传入文件路径/ file name
19 | * @return 返回重命名后的字符串/ file name
20 | */
21 | String rename(String fileName);
22 | }
23 |
--------------------------------------------------------------------------------
/mediabox/src/main/res/drawable/ic_round_check_24.xml:
--------------------------------------------------------------------------------
1 |
8 | * A functional interface (callback) that returns true or false for the given input path should be compressed.
9 | */
10 |
11 | public interface CompressionPredicate {
12 |
13 | /**
14 | * Determine the given input path should be compressed and return a boolean.
15 | *
16 | * @param mimeType input mimeType
17 | * @return the boolean result
18 | */
19 | boolean apply(String mimeType);
20 | }
21 |
--------------------------------------------------------------------------------
/mediabox/src/main/res/drawable/selector_preview_done_background.xml:
--------------------------------------------------------------------------------
1 |
2 |