Core 1.0.0 - Unity C# API Reference Core 1.0.0 - Unity C# API Reference
Core 1.0.0 - Unity C# API Reference Core 1.0.0 - Unity C# API Reference
© 2025 Chartboost, Inc. All rights reserved.

Class ConsentKey

A model representing a user consent standard, like IAB’s TCF or USP strings. It is used by IConsentManagementPlatform> to provide detailed consent status.

Inheritance
object
StronglyTyped<string>
ConsentKey
Implements
IStronglyTyped<string>
Inherited Members
StronglyTyped<string>.Value
StronglyTyped<string>.GetHashCode()
StronglyTyped<string>.ToString()
object.Equals(object)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Chartboost.Core.Consent
Assembly: Chartboost.Core.dll
Syntax
[TypeConverter(typeof(StringTypeConverter<ConsentKey>))]
public class ConsentKey : StronglyTyped<string>, IStronglyTyped<string>

Constructors

ConsentKey(string)

Creates a custom standard with an arbitrary string value.

Declaration
public ConsentKey(string value)
Parameters
Type Name Description
string value

Fields

CCPAOptIn

CCPA opt-in standard. Possible values are: Denied, Granted, DoesNotApply.

Declaration
public static readonly ConsentKey CCPAOptIn
Field Value
Type Description
ConsentKey

GDPRConsentGiven

GDPR opt-in standard. Possible values are: Denied, Granted, DoesNotApply.

Declaration
public static readonly ConsentKey GDPRConsentGiven
Field Value
Type Description
ConsentKey

GPP

GPP standard. Possible values are IAB’s GPP strings, as defined in InteractiveAdvertisingBureau/Global-Privacy-Platform

Declaration
public static readonly ConsentKey GPP
Field Value
Type Description
ConsentKey

TCF

TCF standard. Possible values are IAB’s TCF strings, as defined in InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework

Declaration
public static readonly ConsentKey TCF
Field Value
Type Description
ConsentKey

USP

USP standard. Possible values are IAB’s USP strings, as defined in InteractiveAdvertisingBureau/USPrivacy

Declaration
public static readonly ConsentKey USP
Field Value
Type Description
ConsentKey

Operators

implicit operator ConsentKey(string)

Declaration
public static implicit operator ConsentKey(string obj)
Parameters
Type Name Description
string obj
Returns
Type Description
ConsentKey

Implements

Chartboost.Core.Utilities.IStronglyTyped<T>