Package 

Object VVPManager


  • 
    public class VVPManager
    
                        

    VPPA Video Viewing Protections — Android SDK side. Mirrors the JS pixel plugin (SignalsFBEvents.plugins.vvp.js). Consumes the vvp_config field served by GraphApplicationProtectedModeRulesNode (parsed into FetchedAppSettings.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 class VVPManager.CompiledRule

      One 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 && !keyNeg semantics. 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 class VVPManager.VVPConfig
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static VVPManager INSTANCE
    • 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=1 plus a JSON-encoded vvp_md describing which keys / event-name triggered the match.