Class PrivacyService
Service for obtaining and managing all information regarding user's data privacy and consents.
[PublicAPI]
[Obsolete("Use IPrivacyService instead.")]
public class PrivacyService
- Inheritance
-
PrivacyService
- Inherited Members
Properties
Instance
Shared instance
[Obsolete("Use IPrivacyService.Instance instead.")]
public static PrivacyService Instance { get; }
Property Value
IsInitialized
Returns true if the service is initialized, false otherwise.
All the methods of this service must be called only after it has been initialized.
The Homa SDK will initialize this service very early in the session. So unless you try to interact with
the service at the start of the first scene of the game (not including the Homa Splash screen), or in a
RuntimeInitializeOnLoadMethod, you probably
don't need to bother with testing to see if the service is initialized or not.
[Obsolete("This property is now obsolete and will be removed in a future version.")]
public bool IsInitialized { get; }
Property Value
- See Also
Methods
AskForConsent(ConsentKind)
Ask user to grant consent of the provided kind. If the consent was already determined, user won't be asked.
[Obsolete("This method is now obsolete and will be removed in a future version.")]
public Task AskForConsent(ConsentKind consentKind)
Parameters
consentKindConsentKind
Returns
GetConsentStatus(ConsentKind)
Retrieve consent status for a specified consent kind.
[Obsolete("This method is now obsolete and will be removed in a future version.")]
public ConsentStatus GetConsentStatus(ConsentKind consentKind)
Parameters
consentKindConsentKind
Returns
Initialize()
Initialize the service. Privacy service determines by its own all IConsentProvider available in the executing domain.
[Obsolete("This method is now obsolete and will be removed in a future version.")]
public Task Initialize()
Returns
RegionRequiresConsentManagement(ConsentKind)
Checks if the current region requires consent management for a given kind of consent.
[Obsolete("This method is now obsolete and will be removed in a future version.")]
public bool RegionRequiresConsentManagement(ConsentKind consentKind = ConsentKind.AdsTailoring)
Parameters
consentKindConsentKind
Returns
- bool
true if the user has to have the option to manage the consent.
RequestAllConsents()
Requests all consents according to business rules.
[Obsolete("This method is now obsolete and will be removed in a future version.")]
public Task RequestAllConsents()
Returns
Remarks
This logic is not a system logic, but business logic. Needs to be moved once we separate the two into distinct entities.
ShowConsentManagement(ConsentKind)
Opens consent management screen for specified kind of consent.
[Obsolete("This method is now obsolete and will be removed in a future version.")]
public Task ShowConsentManagement(ConsentKind consentKind = ConsentKind.AdsTailoring)
Parameters
consentKindConsentKind
Returns
Events
ConsentStatusChanged
Invoked when the consent status for any kind of consent has been changed.
[Obsolete("This event is now obsolete and will be removed in a future version.")]
public event Action<ConsentKind, ConsentStatus> ConsentStatusChanged
Event Type
Initialized
Invoked when the service is initialized.
[Obsolete("This event is now obsolete and will be removed in a future version.")]
public event Action Initialized
Event Type
- See Also