content: ' Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
  ' This product includes software developed at Datadog (https://www.datadoghq.com/).
  ' Copyright 2022-Today Datadog, Inc.
  'import "pkg:/source/internalLogger.bs"
  ' ****************************************************************
  ' * RumScope: generic Rum Scope (interface)
  ' ****************************************************************
  
  ' ----------------------------------------------------------------
  ' Initialize the component
  ' ----------------------------------------------------------------
  sub init()
      ddLogVerbose("RumScope::init()")
  end sub
  
  ' ----------------------------------------------------------------
  ' Returns the current context from this scope
  ' @param _ph (dynamic) no-op argument to avoid random crash on older Roku devices
  ' @returns (object) the current context
  ' ----------------------------------------------------------------
  function getRumContext(_ph as dynamic) as object
      ddLogVerbose("RumScope::getRumContext()")
      return invalid
  end function
  
  ' ----------------------------------------------------------------
  ' Handles an internal event
  ' @param event (object) the event to handle
  ' @param writer (object) the writer node (see WriterTask component)
  ' ----------------------------------------------------------------
  sub handleEvent(event as object, writer as object)
      ddLogVerbose("RumScope::handleEvent(" + FormatJson(event) + ", writer)")
  end sub
  
  ' ----------------------------------------------------------------
  ' Returns information about whether the current scope can handle more events or not
  ' @param _ph (dynamic) no-op argument to avoid random crash on older Roku devices
  ' @return (boolean) `true` if this scope expects more event, `false` if it's complete
  ' ----------------------------------------------------------------
  function isActive(_ph as dynamic) as boolean
      ddLogVerbose("RumScope::isActive()")
      ' TODO
      return invalid
  end function