public override void sendAction(string pCampaignID, string pAdvertisement, string pCallbackUrl, string pIdentifier) { Debug.Log("Trigger android sendaction"); AndroidJavaObject unityActivity = GreeAdsRewardUtil.getCurrentActivity(); gar.CallStatic <bool>("sendAction", unityActivity, pCampaignID, pAdvertisement, pCallbackUrl, pIdentifier); }
public override void showInterstitial(int pMediaID, string pIdentifier, int pCampaignID, CampaignType pCampaignType, string listnerName) { AndroidJavaObject unityActivity = GreeAdsRewardUtil.getCurrentActivity(); unityActivity.Call("runOnUiThread", new AndroidJavaRunnable(() => { gar.CallStatic("showInterstitialForUnity", unityActivity, pMediaID, pIdentifier, pCampaignID, (int)pCampaignType, listnerName); })); }
public override void sendAction(string pCampaignID, string pAdvertisement, string pCallbackUrl) { AndroidJavaObject unityActivity = GreeAdsRewardUtil.getCurrentActivity(); gar.CallStatic <bool>("sendAction", unityActivity, pCampaignID, pAdvertisement, pCallbackUrl); }
public override void clickCampaign(int pMediaID, string pIdentifier, int pCampaignID) { AndroidJavaObject unityActivity = GreeAdsRewardUtil.getCurrentActivity(); gar.CallStatic("clickCampaign", unityActivity, pMediaID, pIdentifier, pCampaignID); }
public override void showOfferwallByGreeLayout(int pMediaID, string pIdentifier) { AndroidJavaObject unityActivity = GreeAdsRewardUtil.getCurrentActivity(); gar.CallStatic("showOfferwallByGreeLayout", unityActivity, pMediaID, pIdentifier); }