Appodeal
This commit is contained in:
8
Assets/Appodeal/Common/Appodeal.meta
Normal file
8
Assets/Appodeal/Common/Appodeal.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1323ce415ce9540f3ab8a03b98de34df
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
89
Assets/Appodeal/Common/Appodeal/AppodealAdRevenue.cs
Normal file
89
Assets/Appodeal/Common/Appodeal/AppodealAdRevenue.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
// ReSharper Disable CheckNamespace
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// This class is designed to store ad revenue information.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
public class AppodealAdRevenue
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Appodeal Ad Type as a not-null string.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
public string AdType;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Ad Network Name as a not-null string.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
public string NetworkName;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Appodeal Ad Unit Name as a not-null string.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
public string AdUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Demand Source as a not-null string.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
/// <remarks>Bidder name in case of RTB, otherwise - the same as ad network name.</remarks>
|
||||
public string DemandSource;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Appodeal Placement as a not-null string.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
public string Placement;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// The amount of revenue for an ad.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
/// <remarks>It can be zero in case of an invalid impression.</remarks>
|
||||
public double Revenue;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// The Revenue Currency as a not-null string.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
/// <remarks>At the moment the only supported currency is USD.</remarks>
|
||||
public string Currency;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Ad Revenue Precision as a not-null string.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
/// <remarks><para>'exact' - programmatic revenue is the resulting price of an auction.</para><para>'publisher_defined' - revenue from cross-promo campaigns.</para><para>'estimated' - revenue based on ad unit price floor or historical eCPM.</para><para>'undefined' - revenue amount is not defined.</para></remarks>
|
||||
public string RevenuePrecision;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Returns ad revenue information as a json-formatted string.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
/// <param name="isPretty">If true, format the output for readability. If false, format the output for minimum size. Default is false.</param>
|
||||
public string ToJsonString(bool isPretty = false) => UnityEngine.JsonUtility.ToJson(this, isPretty);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 771fde5441a6402694ccdaa1a8023e20
|
||||
timeCreated: 1664789154
|
||||
18
Assets/Appodeal/Common/Appodeal/IAdRevenueListener.cs
Normal file
18
Assets/Appodeal/Common/Appodeal/IAdRevenueListener.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
// ReSharper Disable CheckNamespace
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface containing signature of Appodeal Ad Revenue callback method.
|
||||
/// </summary>
|
||||
public interface IAdRevenueListener
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Fires when Appodeal SDK tracks ad impression.
|
||||
/// </para>
|
||||
/// See <see href=""/> for more details.
|
||||
/// </summary>
|
||||
/// <param name="ad">contains info about the tracked impression.</param>
|
||||
void onAdRevenueReceived(AppodealAdRevenue ad);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 431d8147345e4487852bf2fad7935c42
|
||||
timeCreated: 1664789084
|
||||
86
Assets/Appodeal/Common/Appodeal/IAppodealAdsClient.cs
Normal file
86
Assets/Appodeal/Common/Appodeal/IAppodealAdsClient.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Collections.Generic;
|
||||
using AppodealAds.Unity.Api;
|
||||
using ConsentManager;
|
||||
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
public interface IAppodealAdsClient
|
||||
{
|
||||
void initialize(string appKey, int adTypes, IAppodealInitializationListener listener);
|
||||
bool isInitialized(int adType);
|
||||
bool show(int adTypes);
|
||||
bool show(int adTypes, string placement);
|
||||
bool isLoaded(int adTypes);
|
||||
void cache(int adTypes);
|
||||
void hide(int adTypes);
|
||||
void setAutoCache(int adTypes, bool autoCache);
|
||||
bool isPrecache(int adTypes);
|
||||
bool showBannerView(int YAxis, int XGravity, string Placement);
|
||||
bool showMrecView(int YAxis, int XGravity, string Placement);
|
||||
void hideBannerView();
|
||||
void hideMrecView();
|
||||
void setSmartBanners(bool value);
|
||||
bool isSmartBannersEnabled();
|
||||
void setBannerAnimation(bool value);
|
||||
void setTabletBanners(bool value);
|
||||
void setBannerRotation(int leftBannerRotation, int rightBannerRotation);
|
||||
void setTesting(bool test);
|
||||
void setLogLevel(Appodeal.LogLevel level);
|
||||
void setChildDirectedTreatment(bool value);
|
||||
void updateConsent(Consent consent);
|
||||
void updateGdprConsent(Appodeal.GdprUserConsent consent);
|
||||
void updateCcpaConsent(Appodeal.CcpaUserConsent consent);
|
||||
List<string> getNetworks(int adType);
|
||||
void disableNetwork(string network);
|
||||
void disableNetwork(string network, int type);
|
||||
void disableLocationPermissionCheck();
|
||||
void muteVideosIfCallsMuted(bool value);
|
||||
void showTestScreen();
|
||||
string getVersion();
|
||||
bool canShow(int adTypes);
|
||||
bool canShow(int adTypes, string placement);
|
||||
void setCustomFilter(string name, bool value);
|
||||
void setCustomFilter(string name, int value);
|
||||
void setCustomFilter(string name, double value);
|
||||
void setCustomFilter(string name, string value);
|
||||
void resetCustomFilter(string name);
|
||||
void setExtraData(string key, bool value);
|
||||
void setExtraData(string key, int value);
|
||||
void setExtraData(string key, double value);
|
||||
void setExtraData(string key, string value);
|
||||
void resetExtraData(string key);
|
||||
string getRewardCurrency(string placement);
|
||||
double getRewardAmount(string placement);
|
||||
string getRewardCurrency();
|
||||
double getRewardAmount();
|
||||
double getPredictedEcpm(int adTypes);
|
||||
double getPredictedEcpmForPlacement(int adType, string placement);
|
||||
void setTriggerOnLoadedOnPrecache(int adTypes, bool onLoadedTriggerBoth);
|
||||
void setUserId(string id);
|
||||
string getUserId();
|
||||
long getSegmentId();
|
||||
void trackInAppPurchase(double amount, string currency);
|
||||
void setInterstitialCallbacks(IInterstitialAdListener listener);
|
||||
void setRewardedVideoCallbacks(IRewardedVideoAdListener listener);
|
||||
void setBannerCallbacks(IBannerAdListener listener);
|
||||
void setMrecCallbacks(IMrecAdListener listener);
|
||||
void setAdRevenueCallback(IAdRevenueListener listener);
|
||||
void destroy(int adTypes);
|
||||
void setUseSafeArea(bool value);
|
||||
bool isAutoCacheEnabled(int adType);
|
||||
void logEvent(string eventName, Dictionary<string, object> eventParams);
|
||||
void validatePlayStoreInAppPurchase(IPlayStoreInAppPurchase purchase, IInAppPurchaseValidationListener listener);
|
||||
void validateAppStoreInAppPurchase(IAppStoreInAppPurchase purchase, IInAppPurchaseValidationListener listener);
|
||||
|
||||
#region Deprecated signatures
|
||||
|
||||
void setSharedAdsInstanceAcrossActivities(bool value);
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Appodeal/Common/Appodeal/IAppodealAdsClient.cs.meta
Normal file
11
Assets/Appodeal/Common/Appodeal/IAppodealAdsClient.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0d45dae8ca00349059f33fb823bb283e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
public interface IAppodealInitializationListener
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
void onInitializationFinished(List<string> errors);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 15002fc8e807d40a29672f293f73c425
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
18
Assets/Appodeal/Common/Appodeal/IBannerAdListener.cs
Normal file
18
Assets/Appodeal/Common/Appodeal/IBannerAdListener.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
public interface IBannerAdListener
|
||||
{
|
||||
void onBannerLoaded(int height, bool isPrecache);
|
||||
void onBannerFailedToLoad();
|
||||
void onBannerShown();
|
||||
void onBannerShowFailed();
|
||||
void onBannerClicked();
|
||||
void onBannerExpired();
|
||||
}
|
||||
}
|
||||
11
Assets/Appodeal/Common/Appodeal/IBannerAdListener.cs.meta
Normal file
11
Assets/Appodeal/Common/Appodeal/IBannerAdListener.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c523f46716394956be24ac369155edb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
62
Assets/Appodeal/Common/Appodeal/IInAppPurchase.cs
Normal file
62
Assets/Appodeal/Common/Appodeal/IInAppPurchase.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using AppodealAds.Unity.Api;
|
||||
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
public interface IInAppPurchaseBase
|
||||
{
|
||||
string getPrice();
|
||||
string getCurrency();
|
||||
string getAdditionalParameters();
|
||||
}
|
||||
|
||||
public interface IInAppPurchaseBaseBuilder
|
||||
{
|
||||
void withPrice(string price);
|
||||
void withCurrency(string currency);
|
||||
void withAdditionalParameters(Dictionary<string, string> additionalParameters);
|
||||
}
|
||||
|
||||
public interface IPlayStoreInAppPurchase : IInAppPurchaseBase
|
||||
{
|
||||
Appodeal.PlayStorePurchaseType getPurchaseType();
|
||||
string getSku();
|
||||
string getOrderId();
|
||||
string getSignature();
|
||||
string getPublicKey();
|
||||
string getPurchaseData();
|
||||
string getPurchaseToken();
|
||||
string getDeveloperPayload();
|
||||
long getPurchaseTimestamp();
|
||||
IPlayStoreInAppPurchase NativeInAppPurchase { get; }
|
||||
}
|
||||
|
||||
public interface IPlayStoreInAppPurchaseBuilder : IInAppPurchaseBaseBuilder
|
||||
{
|
||||
void withSku(string sku);
|
||||
void withOrderId(string orderId);
|
||||
void withPublicKey(string publicKey);
|
||||
void withSignature(string signature);
|
||||
void withPurchaseData(string purchaseData);
|
||||
void withPurchaseToken(string purchaseToken);
|
||||
void withDeveloperPayload(string developerPayload);
|
||||
void withPurchaseTimestamp(long purchaseTimestamp);
|
||||
IPlayStoreInAppPurchase build();
|
||||
}
|
||||
|
||||
public interface IAppStoreInAppPurchase : IInAppPurchaseBase
|
||||
{
|
||||
Appodeal.AppStorePurchaseType getPurchaseType();
|
||||
string getProductId();
|
||||
string getTransactionId();
|
||||
IAppStoreInAppPurchase NativeInAppPurchase { get; }
|
||||
}
|
||||
|
||||
public interface IAppStoreInAppPurchaseBuilder : IInAppPurchaseBaseBuilder
|
||||
{
|
||||
void withProductId(string productId);
|
||||
void withTransactionId(string transactionId);
|
||||
IAppStoreInAppPurchase build();
|
||||
}
|
||||
}
|
||||
11
Assets/Appodeal/Common/Appodeal/IInAppPurchase.cs.meta
Normal file
11
Assets/Appodeal/Common/Appodeal/IInAppPurchase.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 72b801c20c7544e1fb74b1ba0cacf6f0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
public interface IInAppPurchaseValidationListener
|
||||
{
|
||||
void onInAppPurchaseValidationSucceeded(string json);
|
||||
void onInAppPurchaseValidationFailed(string json);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 57ad42aab5dbf46d1a556bb9a145f682
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
19
Assets/Appodeal/Common/Appodeal/IInterstitialAdListener.cs
Normal file
19
Assets/Appodeal/Common/Appodeal/IInterstitialAdListener.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
public interface IInterstitialAdListener
|
||||
{
|
||||
void onInterstitialLoaded(bool isPrecache);
|
||||
void onInterstitialFailedToLoad();
|
||||
void onInterstitialShowFailed();
|
||||
void onInterstitialShown();
|
||||
void onInterstitialClosed();
|
||||
void onInterstitialClicked();
|
||||
void onInterstitialExpired();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e84ede4c77b104546a6dc73eb1b3402c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
18
Assets/Appodeal/Common/Appodeal/IMrecAdListener.cs
Normal file
18
Assets/Appodeal/Common/Appodeal/IMrecAdListener.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
public interface IMrecAdListener
|
||||
{
|
||||
void onMrecLoaded(bool isPrecache);
|
||||
void onMrecFailedToLoad();
|
||||
void onMrecShown();
|
||||
void onMrecShowFailed();
|
||||
void onMrecClicked();
|
||||
void onMrecExpired();
|
||||
}
|
||||
}
|
||||
11
Assets/Appodeal/Common/Appodeal/IMrecAdListener.cs.meta
Normal file
11
Assets/Appodeal/Common/Appodeal/IMrecAdListener.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a7fedafa4546a4c6fbcd34cfb230392a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
20
Assets/Appodeal/Common/Appodeal/IRewardedVideoAdListener.cs
Normal file
20
Assets/Appodeal/Common/Appodeal/IRewardedVideoAdListener.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace AppodealAds.Unity.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
public interface IRewardedVideoAdListener
|
||||
{
|
||||
void onRewardedVideoLoaded(bool precache);
|
||||
void onRewardedVideoFailedToLoad();
|
||||
void onRewardedVideoShowFailed();
|
||||
void onRewardedVideoShown();
|
||||
void onRewardedVideoFinished(double amount, string name);
|
||||
void onRewardedVideoClosed(bool finished);
|
||||
void onRewardedVideoExpired();
|
||||
void onRewardedVideoClicked();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bfcaa2dbbdfb64ec3bb38107e982a867
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Appodeal/Common/ConsentManager.meta
Normal file
8
Assets/Appodeal/Common/ConsentManager.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb6a697bedaa8442c8ae8977dab40877
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace ConsentManager.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
|
||||
public interface IConsentFormListener
|
||||
{
|
||||
void onConsentFormLoaded();
|
||||
void onConsentFormError(ConsentManagerException consentManagerException);
|
||||
void onConsentFormOpened();
|
||||
void onConsentFormClosed(Consent consent);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d2a6d1e4a2dc04e4ba9bf43899ad6cea
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace ConsentManager.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
|
||||
public interface IConsentInfoUpdateListener
|
||||
{
|
||||
void onConsentInfoUpdated(Consent consent);
|
||||
void onFailedToUpdateConsentInfo(ConsentManagerException error);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3e3b4501bed1e45b0b94b9e9bee9d78c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
70
Assets/Appodeal/Common/ConsentManager/IConsentManager.cs
Normal file
70
Assets/Appodeal/Common/ConsentManager/IConsentManager.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
|
||||
namespace ConsentManager.Common
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
public interface IConsentManager
|
||||
{
|
||||
void requestConsentInfoUpdate(string appodealAppKey, IConsentInfoUpdateListener listener);
|
||||
void setCustomVendor(Vendor customVendor);
|
||||
Vendor getCustomVendor(string bundle);
|
||||
ConsentManager.Storage getStorage();
|
||||
void setStorage(ConsentManager.Storage iabStorage);
|
||||
Consent.ShouldShow shouldShowConsentDialog();
|
||||
Consent.Zone getConsentZone();
|
||||
Consent.Status getConsentStatus();
|
||||
Consent getConsent();
|
||||
void disableAppTrackingTransparencyRequest();
|
||||
}
|
||||
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public interface IConsentForm
|
||||
{
|
||||
void load();
|
||||
void show();
|
||||
bool isLoaded();
|
||||
bool isShowing();
|
||||
}
|
||||
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public interface IVendor
|
||||
{
|
||||
string getName();
|
||||
string getBundle();
|
||||
string getPolicyUrl();
|
||||
List<int> getPurposeIds();
|
||||
List<int> getFeatureIds();
|
||||
List<int> getLegitimateInterestPurposeIds();
|
||||
}
|
||||
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
public interface IVendorBuilder
|
||||
{
|
||||
IVendor build();
|
||||
void setPurposeIds(IEnumerable<int> purposeIds);
|
||||
void setFeatureIds(IEnumerable<int> featureIds);
|
||||
void setLegitimateInterestPurposeIds(IEnumerable<int> legitimateInterestPurposeIds);
|
||||
}
|
||||
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||
public interface IConsent
|
||||
{
|
||||
Consent.Zone getZone();
|
||||
Consent.Status getStatus();
|
||||
Consent.AuthorizationStatus getAuthorizationStatus();
|
||||
Consent.HasConsent hasConsentForVendor(string bundle);
|
||||
string getIabConsentString();
|
||||
}
|
||||
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public interface IConsentManagerException
|
||||
{
|
||||
string getReason();
|
||||
int getCode();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4f071b2c746a4e96802d9d255b1a7f6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user