-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added dialog dissmiss event listener
Added helper method to allow the creator of a dialog to run some code when the dialog is dismissed. #141
- Loading branch information
1 parent
eac8256
commit 1de8b03
Showing
4 changed files
with
67 additions
and
3 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
18 changes: 18 additions & 0 deletions
18
imagepicker/src/main/kotlin/com/github/dhaval2404/imagepicker/listener/DismissListener.kt
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,18 @@ | ||
package com.github.dhaval2404.imagepicker.listener | ||
|
||
/** | ||
* Interface used to allow the creator of a dialog to run some code when the | ||
* dialog is dismissed. | ||
* | ||
* @author Dhaval Patel | ||
* @version 1.8 | ||
* @since 19 December 2020 | ||
*/ | ||
interface DismissListener { | ||
|
||
/** | ||
* This method will be invoked when the dialog is dismissed. | ||
*/ | ||
fun onDismiss() | ||
|
||
} |
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