/** * 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); }
public AppLovin() { targetingData = new AppLovinTargetingData(); }
/** * 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); }