Created
July 28, 2019 02:10
-
-
Save Guilherme-HRamos/1ed9efb035f6af7cbb91cfd0b735b8f6 to your computer and use it in GitHub Desktop.
Medium - Android/Java Interfaces like a Boss! - Backwards Compatibility
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
public interface BaseViewContract { | |
void onShowLoading(); | |
void onHideLoading(); | |
void onShowError(String error); | |
} |
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
public interface ViewContract extends BaseViewContract { | |
void onAccountUpdate(); | |
void onAccountRemoved(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment