Table of Contents

Interface IConsentProvider

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

A provider for one or more possible ConsentKind.

[RequireImplementors]
[Obsolete("Use IUserTraitProvider<TUserTrait> instead.")]
public interface IConsentProvider

Properties

SupportedConsents

Collection of supported Consents

IEnumerable<ConsentKind> SupportedConsents { get; }

Property Value

IEnumerable<ConsentKind>

Methods

AskForConsent()

Ask a user for supported consents.

Task<IEnumerable<Consent>> AskForConsent()

Returns

Task<IEnumerable<Consent>>

A collection of consents whose status has changed, after the user has been asked.

GetConsentStatus(ConsentKind)

Returns the current status for a given consent kind.

ConsentStatus GetConsentStatus(ConsentKind consentKind)

Parameters

consentKind ConsentKind

Returns

ConsentStatus

Initialize()

This method is called before any other method of the consent provider.

Task Initialize()

Returns

Task

IsConsentApplicable(ConsentKind)

Return true if user consent is currently applicable. If not, the system will work as if consent has been granted, without prompting anything to the user.

bool IsConsentApplicable(ConsentKind consentKind)

Parameters

consentKind ConsentKind

Returns

bool

IsConsentManagementAvailable(ConsentKind)

Return true if the region requires consent management for this specific kind of consent.

bool IsConsentManagementAvailable(ConsentKind consentKind)

Parameters

consentKind ConsentKind

Returns

bool
See Also

OpenConsentManagement(ConsentKind)

Open the consent management screen for a given consent kind. Complete the task after the management screen has been closed.

Task<ConsentStatus?> OpenConsentManagement(ConsentKind consentKind)

Parameters

consentKind ConsentKind

Returns

Task<ConsentStatus?>

New status for the consent, or null when change of consent is not possible.

See Also