コード例 #1
0
    /**
     * Create an instance of AppLovin with a custom activity
     *
     * @param {AndroidJavaObject} The activity that you are using
     */
        #if UNITY_ANDROID
    public AppLovin(AndroidJavaObject activity)
    {
        if (activity == null)
        {
            throw new MissingReferenceException("No parent activity specified");
        }

        currentActivity = activity;
        targetingData   = new AppLovinTargetingData(currentActivity);
    }
コード例 #2
0
 public AppLovin()
 {
     targetingData = new AppLovinTargetingData();
 }
コード例 #3
0
    /**
     * Create an instance of AppLovin with a custom activity
     *
     * @param {AndroidJavaObject} The activity that you are using
     */
    public AppLovin(AndroidJavaObject activity)
    {
        if (activity == null) throw new MissingReferenceException("No parent activity specified");

        currentActivity = activity;
        targetingData = new AppLovinTargetingData(currentActivity);
    }
コード例 #4
0
 public AppLovin()
 {
     targetingData = new AppLovinTargetingData();
 }