public void UpdateAttributionButtonClick() { Dictionary <string, string> attribution = new Dictionary <string, string>(); attribution.Add("some_key", "some_value"); Adapty.updateAttribution(attribution, AttributionNetwork.Adjust, "user_id", this); }
public void ValidateReceiptButtonClick() { if (retrievedReceipt != null) { Adapty.validateAppleReceipt(retrievedReceipt, this); } }
public void MakePurchaseButtonClick() { if (retrievedProducts.Count > 0) { Adapty.makePurchase(retrievedProducts[0], null, this); retrievedProducts.RemoveAt(0); } }
public void UpdateProfileButtonClick() { ProfileParameterBuilder profile = new ProfileParameterBuilder() .withBirthday("1970-01-01") .withEmail("*****@*****.**") .withFirstName("Somename") .withLastName("Somelast") .withGender(Gender.Male) .withPhoneNumber("+11234567890"); Adapty.updateProfile(profile, this); }
void Update() { #if !UNITY_EDITOR Adapty.executeCallback(); #endif }
void Start() { Adapty.setLogLevel(logLevel); Adapty.activate(key, observeMode); }
// Start is called before the first frame update void Start() { Adapty.setOnPromoReceivedListener(this); Adapty.setOnPurchaserInfoUpdatedListener(this); }
public void SyncPurchasesButtonClick() { Adapty.syncPurchases(this); }
public void LogoutButtonClick() { Adapty.logout(this); }
public void IdentifyButtonClick() { Adapty.identify("my_unity_user_id", this); }
public void GetPromoButtonClick() { Adapty.getPromo(this); }
public void GetPurchaserInfoButtonClick() { Adapty.getPurchaserInfo(this); }
public void RestorePurchasesButtonClick() { Adapty.restorePurchases(this); }
// Button Clicks public void GetPaywallsButtonClick() { Adapty.getPaywalls(this); }