Object LevelPlayPrivacySettings
-
- All Implemented Interfaces:
public class LevelPlayPrivacySettingsThis class provides privacy APIs for the LevelPlay SDK.
-
-
Field Summary
Fields Modifier and Type Field Description public final static LevelPlayPrivacySettingsINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitsetGDPRConsents(Map<String, Boolean> networkConsents)Sets the consent per network, a map of network keys to boolean values that indicates whether the user has granted consent for each network to collect and share data. final static UnitsetGDPRConsent(Boolean consent)Sets the GDPR consent, indicating whether the user has granted consent to collect and share their data. final static UnitsetCCPA(Boolean value)Sets the CCPA (California Consumer Privacy Act) flag. final static UnitsetCOPPA(Boolean value)Sets the COPPA (Children's Online Privacy Protection Act) flag. -
-
Method Detail
-
setGDPRConsents
@Deprecated(message = "Use LevelPlayPrivacySettings.setGDPRConsent() for GDPR consent management.", level = DeprecationLevel.WARNING) final static Unit setGDPRConsents(Map<String, Boolean> networkConsents)
Sets the consent per network, a map 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.
- Parameters:
networkConsents- A map where keys are network identifiers and values indicate consent status, true if the user has granted consent, false otherwise.
-
setGDPRConsent
final static Unit setGDPRConsent(Boolean consent)
Sets the GDPR consent, indicating whether the user has granted consent to collect and share their data. Consent is used for GDPR compliance.
- Parameters:
consent- A boolean indicating the user's GDPR consent status, true if the user has granted consent, false otherwise.
-
setCCPA
final static Unit setCCPA(Boolean value)
Sets the CCPA (California Consumer Privacy Act) flag. This flag indicates whether the user has opted out of the sale of their personal information.
- Parameters:
value- true if the user has opted out of the sale of their personal information, false otherwise.
-
setCOPPA
final static Unit setCOPPA(Boolean value)
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.
Must be called before LevelPlay.init. If the SDK is already initialized, this call is ignored and an error is logged.
- Parameters:
value- true if the user is a child under the age of 13, false otherwise.
-
-
-
-