-
-
Save celiovasconcelos/2f97b330dfbd73964b67e5adccbb20fa to your computer and use it in GitHub Desktop.
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
//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