Skip to content

Commit

Permalink
7 Şubat 2022:
Browse files Browse the repository at this point in the history
-shouldRestartApp, shouldShowToast, shouldFirstProductsReturnTrue
boolean values given and functions implemented
  • Loading branch information
Ucdemir committed Feb 7, 2022
1 parent 5088f1b commit c3239b2
Showing 1 changed file with 24 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public class ConnectToPlay extends YHYManager{
private AcknowledgePurchaseResponseListener acknowledgePurchaseResponseListener;

private boolean shouldRestartApp = true;

public boolean shouldShowToast = true;
protected boolean shouldShowToast = true;
private boolean shouldFirstProductsReturnTrue = true;

public enum CallType{
GetPriceProducts,
Expand Down Expand Up @@ -494,10 +494,10 @@ public ConnectToPlay setProductStatusGotListener(ProductStatusGotListener listen
}


public ConnectToPlay setSuccessfullyPurchasedListener(SuccessfullyPurchasedListener listener,Boolean shouldRestartApp){
public ConnectToPlay setSuccessfullyPurchasedListener(SuccessfullyPurchasedListener listener){

mSuccessfullyPurchasedListener = listener;
this.shouldRestartApp = shouldRestartApp;


return this;
}
Expand All @@ -519,7 +519,12 @@ public boolean whatIsProductStatus(String skuName){

if(isFirstOpen){

return true;
if(shouldFirstProductsReturnTrue){
return true;

}else{
return false;
}

}else {

Expand Down Expand Up @@ -564,5 +569,19 @@ public void endConnection(){
mBillingClient.endConnection();
}
}
public ConnectToPlay shouldShowToast(boolean shouldShowToast){
this.shouldShowToast = shouldShowToast;
return instance;
}
public ConnectToPlay shouldRestartApp(boolean shouldRestartApp){
this.shouldRestartApp = shouldRestartApp;
return instance;
}
public ConnectToPlay shouldFirstProductsReturnTrue(boolean shouldFirstProductsReturnTrue){
this.shouldFirstProductsReturnTrue = shouldFirstProductsReturnTrue;
return instance;
}



}

0 comments on commit c3239b2

Please sign in to comment.