-
public class VVPManagerVPPA Video Viewing Protections — Android SDK side. Mirrors the JS pixel plugin (
SignalsFBEvents.plugins.vvp.js). Consumes thevvp_configfield served byGraphApplicationProtectedModeRulesNode(parsed intoFetchedAppSettings.vvpConfig) and exposes a typed VVPConfig for the per-event hook to consult.This file owns parsing + lifecycle only. Detection / sanitization / payload tagging will be added in subsequent diffs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVVPManager.CompiledRuleOne detection rule, with regexes pre-compiled at parse time. keyRegex and valueRegex can each be null (meaning "no constraint on that side"); a rule with both null is dropped during parse. keyNegativeRegex is an optional exclusion filter — when non-null, a customData key or event name matching it is treated as a non-match even if keyRegex would have matched. Mirrors the JS pixel plugin's
keyOk = keyPos && !keyNegsemantics. A rule with only keyNegativeRegex set (no positive constraint) is also dropped, since it would match every key not in the exclusion set.public final classVVPManager.VVPConfig
-
Field Summary
Fields Modifier and Type Field Description public final static VVPManagerINSTANCE
-
Method Summary
-
-
Method Detail
-
processParametersForVVP
final static Unit processParametersForVVP(String eventName, Bundle parameters)
Per-event hook. Called from the SDK's event send pipeline (alongside ProtectedModeManager.processParametersForProtectedMode). Returns early if VVP is disabled, the event isn't in scope, or no rule matches. On match: sanitizes / strips customData keys per the standardParams allowlist (with content-ID keys replaced rather than dropped), and tags the bundle with
vvp=1plus a JSON-encodedvvp_mddescribing which keys / event-name triggered the match.
-
-
-
-