File tree Expand file tree Collapse file tree 4 files changed +33
-11
lines changed
library/src/main/java/com/hjq/window Expand file tree Collapse file tree 4 files changed +33
-11
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,30 @@ public interface OnWindowLifecycleCallback {
1414 /**
1515 * 窗口显示回调
1616 */
17- default void onWindowShow (@ NonNull EasyWindow <?> easyWindow ) {}
17+ default void onWindowShow (@ NonNull EasyWindow <?> easyWindow ) {
18+ // default implementation ignored
19+ }
1820
1921 /**
2022 * 窗口更新回调
2123 */
22- default void onWindowUpdate (@ NonNull EasyWindow <?> easyWindow ) {}
24+ default void onWindowUpdate (@ NonNull EasyWindow <?> easyWindow ) {
25+ // default implementation ignored
26+ }
2327
2428 /**
2529 * 窗口消失回调
2630 */
27- default void onWindowCancel (@ NonNull EasyWindow <?> easyWindow ) {}
31+ default void onWindowCancel (@ NonNull EasyWindow <?> easyWindow ) {
32+ // default implementation ignored
33+ }
2834
2935 /**
3036 * 窗口回收回调
3137 */
32- default void onWindowRecycle (@ NonNull EasyWindow <?> easyWindow ) {}
38+ default void onWindowRecycle (@ NonNull EasyWindow <?> easyWindow ) {
39+ // default implementation ignored
40+ }
3341
3442 /***
3543 * 窗口可见性发生变化
@@ -39,5 +47,7 @@ default void onWindowRecycle(@NonNull EasyWindow<?> easyWindow) {}
3947 * {@link View#INVISIBLE}
4048 * {@link View#GONE}
4149 */
42- default void onWindowVisibilityChanged (@ NonNull EasyWindow <?> easyWindow , int visibility ) {}
50+ default void onWindowVisibilityChanged (@ NonNull EasyWindow <?> easyWindow , int visibility ) {
51+ // default implementation ignored
52+ }
4353}
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ interface OnScreenOrientationCallback {
9494 *
9595 * @param newOrientation 最新的屏幕方向
9696 */
97- default void onScreenOrientationChange (int newOrientation ) {}
97+ default void onScreenOrientationChange (int newOrientation ) {
98+ // default implementation ignored
99+ }
98100 }
99101}
Original file line number Diff line number Diff line change @@ -814,16 +814,22 @@ public interface OnWindowDraggingListener {
814814 /**
815815 * 开始拖拽
816816 */
817- default void onWindowDraggingStart (@ NonNull EasyWindow <?> easyWindow ) {}
817+ default void onWindowDraggingStart (@ NonNull EasyWindow <?> easyWindow ) {
818+ // default implementation ignored
819+ }
818820
819821 /**
820822 * 拖拽中
821823 */
822- default void onWindowDraggingRunning (@ NonNull EasyWindow <?> easyWindow ) {}
824+ default void onWindowDraggingRunning (@ NonNull EasyWindow <?> easyWindow ) {
825+ // default implementation ignored
826+ }
823827
824828 /**
825829 * 停止拖拽
826830 */
827- default void onWindowDraggingStop (@ NonNull EasyWindow <?> easyWindow ) {}
831+ default void onWindowDraggingStop (@ NonNull EasyWindow <?> easyWindow ) {
832+ // default implementation ignored
833+ }
828834 }
829835}
Original file line number Diff line number Diff line change @@ -311,11 +311,15 @@ public interface SpringBackAnimCallback {
311311 /**
312312 * 回弹动画开始执行
313313 */
314- default void onSpringBackAnimationStart (@ NonNull EasyWindow <?> easyWindow , @ NonNull Animator animator ) {}
314+ default void onSpringBackAnimationStart (@ NonNull EasyWindow <?> easyWindow , @ NonNull Animator animator ) {
315+ // default implementation ignored
316+ }
315317
316318 /**
317319 * 回弹动画结束执行
318320 */
319- default void onSpringBackAnimationEnd (@ NonNull EasyWindow <?> easyWindow , @ NonNull Animator animator ) {}
321+ default void onSpringBackAnimationEnd (@ NonNull EasyWindow <?> easyWindow , @ NonNull Animator animator ) {
322+ // default implementation ignored
323+ }
320324 }
321325}
You can’t perform that action at this time.
0 commit comments