Class DataUsageConsentManager
Declaration
public class DataUsageConsentManager : Module<DataUsageConsentManager, DataUsageConsentConfig, DataUsageConsentDebugger>, IUserResponseHandler
Implements:
Global.IUserResponseHandler
Properties
Service
Service of the module
Declaration
public static IDataUsageConsentService<IDataUsageConsentServiceConfig> Service { get; }
Logger
Declaration
public override ILog Logger { get; }
UserResponseDuration
Declaration
public double UserResponseDuration { get; }
CurrentArea
Declaration
public static Area CurrentArea { get; }
IsATTRequired
Declaration
public static bool IsATTRequired { get; }
UserAdTracking
Declaration
public static UserAdTrackingState UserAdTracking { get; }
IsConsentRequiredInThisLocationFromCmp
Declaration
public static bool IsConsentRequiredInThisLocationFromCmp { get; }
ShouldCollectConsentFromCmp
Declaration
public static bool ShouldCollectConsentFromCmp { get; }
CountryCode
Declaration
public static string CountryCode { get; set; }
RegionCode
Declaration
public static string RegionCode { get; set; }
TcString
Declaration
public static string TcString { get; }
AcString
Declaration
public static string AcString { get; }
TcfMap
Declaration
public static TcString TcfMap { get; }
AtpMap
Declaration
public static List<ulong> AtpMap { get; }
Fields
IsConsentStructureBypassed
Declaration
public static bool IsConsentStructureBypassed
Methods
RegisterService(IDataUsageConsentService<IDataUsageConsentServiceConfig>)
Service registration
Declaration
public static void RegisterService(IDataUsageConsentService<IDataUsageConsentServiceConfig> service)
Parameters
Type | Name | Description |
---|---|---|
MatchinghamGames.DataUsageConsent.IDataUsageConsentService<TDataUsageConsentServiceConfig> | service | service |
Initialize(Action<InitializationResult>)
Declaration
protected override void Initialize(Action<InitializationResult> setResult)
Parameters
Type | Name |
---|---|
System.Action<InitializationResult> | setResult |
SetUserConsent(UserResponse)
Declaration
public static void SetUserConsent(UserResponse response)
Parameters
Type | Name |
---|---|
MatchinghamGames.DataUsageConsent.UserResponse | response |
GetConsent(string)
Get consent for given non-TCF vendor's id
Declaration
public static UserResponse GetConsent(string templateID)
Returns
MatchinghamGames.DataUsageConsent.UserResponse: if consent given or not
Parameters
Type | Name | Description |
---|---|---|
System.String | templateID | non-TCF vendor's id |
GetConsent(int, params int[])
Get consent for given TCF vendor's id and purpose ids
Declaration
public static UserResponse GetConsent(int vendorID, params int[] purposeIDs)
Returns
MatchinghamGames.DataUsageConsent.UserResponse: if consent is given or not
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | vendorID | TCF vendor id |
System.Int32[] | purposeIDs | purpose ids |
GetConsent(ulong)
Get consent for given Google Ad Technology Provider ID
Declaration
public static UserResponse GetConsent(ulong providerID)
Returns
MatchinghamGames.DataUsageConsent.UserResponse: if consent is given or not
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | providerID | Google Ad Technology Provider ID |
ShowBasicConsentForm()
Declaration
public static void ShowBasicConsentForm()
ShowAdvancedConsentForm()
Declaration
public static void ShowAdvancedConsentForm()
Events
ConsentUpdated
Declaration
public static event Action ConsentUpdated
Event Type
System.Action
BasicConsentFormClosed
Declaration
public static event Action BasicConsentFormClosed
Event Type
System.Action
AdvancedConsentFormClosed
Declaration
public static event Action AdvancedConsentFormClosed
Event Type
System.Action
Implements
Global.IUserResponseHandler