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 ConsentValue

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

Inheritance
object
StronglyTyped<string>
ConsentValue
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<ConsentValue>))]
public class ConsentValue : StronglyTyped<string>, IStronglyTyped<string>

Constructors

ConsentValue(string)

Creates a custom value with an arbitrary string value.

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

Fields

Denied

Indicates the user denied consent.

Declaration
public static readonly ConsentValue Denied
Field Value
Type Description
ConsentValue

DoesNotApply

Indicates the standard does not apply.

Declaration
public static readonly ConsentValue DoesNotApply
Field Value
Type Description
ConsentValue

Granted

Indicates the user granted consent.

Declaration
public static readonly ConsentValue Granted
Field Value
Type Description
ConsentValue

Operators

implicit operator ConsentValue(string)

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

Implements

Chartboost.Core.Utilities.IStronglyTyped<T>