Class LevelPlayPrivacySettings
This class provides privacy APIs for the LevelPlay SDK.
Inherited Members
Namespace: Unity.Services.LevelPlay
Assembly: Unity.LevelPlay.dll
Syntax
public static class LevelPlayPrivacySettings
Methods
SetCCPA(bool)
Sets the CCPA (California Consumer Privacy Act) flag. This flag indicates whether the user has opted out of the sale of their personal information.
Declaration
public static void SetCCPA(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | true if the user has opted out of the sale of their personal information, false otherwise. |
SetCOPPA(bool)
Sets the COPPA (Children's Online Privacy Protection Act) flag. This flag indicates whether the user is a child under the age of 13. This will apply COPPA settings to all supported network adapters.
Declaration
public static void SetCOPPA(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | true if the user is a child under the age of 13, false otherwise. |
SetGDPRConsents(Dictionary<string, bool>)
Sets the consent per network, a dictionary of network keys to boolean values that indicates whether the user has granted consent for each network to collect and share data. Consent is used for GDPR compliance.
Declaration
public static void SetGDPRConsents(Dictionary<string, bool> networkConsents)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, bool> | networkConsents | A dictionary where keys are network identifiers and values indicate consent status, true if the user has granted consent, false otherwise. |