Interface ITargetingActivation
Component allowing consumer packages (e.g., Live Releases, Insights, IAP) to declare that they require Authentication targeting attributes to be transmitted on sign-in.
Namespace: Unity.Services.Authentication.Internal
Assembly: Unity.Services.Core.Internal.dll
Syntax
[RequireImplementors]
public interface ITargetingActivation : IServiceComponent
Remarks
When at least one consumer is registered, targeting is enabled by default.
The application can still override the effective state via
AuthenticationService.Instance.Targeting.SetEnabled(bool) for
privacy/consent flows.
Methods
RegisterConsumer(string)
Register the calling package as requiring targeting attributes. Idempotent: registering the same name twice has no additional effect.
Declaration
void RegisterConsumer(string consumerName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | consumerName | The consumer package identifier, typically the package name (e.g., "com.unity.purchasing"). Used for diagnostic messages. |