Skip to content

Commit 39711ef

Browse files
authored
Create README.md
1 parent 4cc87f3 commit 39711ef

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# CheckNewAppVersionAvailable
2+
This class makes a request to Play Store to check if there is a new version of your published app. Then, you can notify your users to do the update.
3+
4+
# Porpouse
5+
6+
This class makes a request to the Play Store to check if there is a new version of your published app. Depends on that, you can notify your users to then, do the update.
7+
8+
# Usage
9+
10+
11+
# Implementation
12+
13+
new CheckNewAppVersion(yourContext).setOnTaskCompleteListener(new CheckNewAppVersion.ITaskComplete() {
14+
@Override
15+
public void onTaskComplete(CheckNewAppVersion.Result result) {
16+
17+
//Checks if there is a new version available on Google Play Store.
18+
result.hasNewVersion();
19+
20+
//Get the new published version code of the app.
21+
result.getNewVersionCode();
22+
23+
//Get the app current version code.
24+
result.getOldVersionCode();
25+
26+
//Opens the Google Play Store on your app page to do the update.
27+
result.openUpdateLink();
28+
}
29+
}).execute();

0 commit comments

Comments
 (0)