-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
郑梓斌
committed
May 18, 2018
1 parent
23ef40a
commit 555eb9d
Showing
5 changed files
with
99 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
library/src/main/java/top/zibin/luban/OnRenameListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package top.zibin.luban; | ||
|
||
/** | ||
* Author: zibin | ||
* Datetime: 2018/5/18 | ||
* <p> | ||
* 提供修改压缩图片命名接口 | ||
* <p> | ||
* A functional interface (callback) that used to rename the file after compress. | ||
*/ | ||
public interface OnRenameListener { | ||
|
||
/** | ||
* 压缩前调用该方法用于修改压缩后文件名 | ||
* <p> | ||
* Call before compression begins. | ||
* | ||
* @param filePath 传入文件路径/ file path | ||
* @return 返回重命名后的字符串/ file name | ||
*/ | ||
String rename(String filePath); | ||
} |