Table of Contents

Class PrivacyService

Namespace
HomaGames.HomaBelly.Privacy
Assembly
HomaGames.HomaBelly.Core.dll

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

PrivacyService

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

bool
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

consentKind ConsentKind

Returns

Task

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

consentKind ConsentKind

Returns

ConsentStatus

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

Task

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

consentKind ConsentKind

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

Task

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

consentKind ConsentKind

Returns

Task

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

Action<ConsentKind, ConsentStatus>

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

Action
See Also