Code example for DialogFragment

Methods: onDestroy

0
    @Override 
    public void onDestroy() { 
        if (adView != null) {
            adView.destroy();
        } 
        super.onDestroy(); 
    } 
 
    public void setProperties(int points, int best, int imageResource, int titleResource, int textResource,
            boolean nextLevelUnlocked) {
        this.points = points;
        this.best = best;
        this.imageResource = imageResource;
        this.titleResource = titleResource;
        this.textResource = textResource;
        this.nextLevelUnlocked = nextLevelUnlocked;
 
    } 
}