Last active
October 22, 2017 11:42
-
-
Save pushlink/9c8349aa4e815b9e81c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//Changing default notification messages | |
StatusBarStrategy sbs = (StatusBarStrategy) PushLink.getCurrentStrategy(); | |
sbs.setStatusBarTitle("Hello, there is a new version"); | |
sbs.setStatusBarDescription("Click to be happy"); | |
//Changing strategy | |
PushLink.setCurrentStrategy(StrategyEnum.FRIENDLY_POPUP); | |
//Modifying new strategy | |
FriendlyPopUpStrategy fps = (FriendlyPopUpStrategy) PushLink.getCurrentStrategy(); | |
fps.setPopUpMessage("New version available"); | |
fps.setNotNowButton("No, thanks!"); | |
fps.setUpdateButton("Ok, lets go"); | |
fps.setReminderTimeInSeconds(60 * 60); //one hour | |
//You can do the same with AnnoyingPopUpStrategy.class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment