コード例 #1
0
    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);
    }
コード例 #2
0
    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);
        }));
    }
コード例 #3
0
    public override void sendAction(string pCampaignID, string pAdvertisement, string pCallbackUrl)
    {
        AndroidJavaObject unityActivity = GreeAdsRewardUtil.getCurrentActivity();

        gar.CallStatic <bool>("sendAction", unityActivity, pCampaignID, pAdvertisement, pCallbackUrl);
    }
コード例 #4
0
    public override void clickCampaign(int pMediaID, string pIdentifier, int pCampaignID)
    {
        AndroidJavaObject unityActivity = GreeAdsRewardUtil.getCurrentActivity();

        gar.CallStatic("clickCampaign", unityActivity, pMediaID, pIdentifier, pCampaignID);
    }
コード例 #5
0
    public override void showOfferwallByGreeLayout(int pMediaID, string pIdentifier)
    {
        AndroidJavaObject unityActivity = GreeAdsRewardUtil.getCurrentActivity();

        gar.CallStatic("showOfferwallByGreeLayout", unityActivity, pMediaID, pIdentifier);
    }