Skip to content

Instantly share code, notes, and snippets.

@vizbee
Last active March 13, 2024 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vizbee/c8e6b912c5611fb65848cfe3dd8f72ff to your computer and use it in GitHub Desktop.
Save vizbee/c8e6b912c5611fb65848cfe3dd8f72ff to your computer and use it in GitHub Desktop.

Instructions

  • Step 1 - Identify the component where RAF is initialized and your app's RAF tracking callback is set.
  • Step 2 - Include the VizbeeClient.brs as dependency in the xml of scene identified.
  • Step 3 - Within your RAF traking callback, invoke Vizbee's RAF tracking callback as shown below.
adInterface = Roku_Ads()
adInterface.setTrackingCallback(rafAdTrackingCallback)
'Your app's RAF callback for ad monitoring
sub rafAdTrackingCallback(obj=Invalid as Dynamic, eventType = Invalid as Dynamic, ctx = Invalid as Dynamic)
'...
'Invoke Vizbee RAF callback to monitor ad status
VizbeeClient().vizbeeRAFCallback(obj, eventType, ctx)
end sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment