-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Showing
7 changed files
with
41 additions
and
37 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
WordPress/src/main/java/org/wordpress/android/inappupdate/IInAppUpdateListener.kt
This file was deleted.
Oops, something went wrong.
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
34 changes: 34 additions & 0 deletions
34
WordPress/src/main/java/org/wordpress/android/inappupdate/InAppUpdateListener.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,34 @@ | ||
package org.wordpress.android.inappupdate | ||
|
||
/** | ||
* Abstract class for handling callbacks related to in-app update events. | ||
* | ||
* Each method provides a default implementation that does nothing, allowing | ||
* implementers to only override the necessary methods without implementing | ||
* all callback methods. | ||
*/ | ||
abstract class InAppUpdateListener { | ||
open fun onAppUpdateStarted(type: Int) { | ||
// Default empty implementation | ||
} | ||
|
||
open fun onAppUpdateDownloaded() { | ||
// Default empty implementation | ||
} | ||
|
||
open fun onAppUpdateInstalled() { | ||
// Default empty implementation | ||
} | ||
|
||
open fun onAppUpdateFailed() { | ||
// Default empty implementation | ||
} | ||
|
||
open fun onAppUpdateCancelled() { | ||
// Default empty implementation | ||
} | ||
|
||
open fun onAppUpdatePending() { | ||
// Default empty implementation | ||
} | ||
} |
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