ifSGNodeHttpAgentAccess

The ifSGNodeHttpAgentAccess interface allows you to get an roHttpAgent object from a SceneGraph node, and set an roHttpAgent object for a nod

Implemented by

NameDescription
roSGNodeThe roSGNode object is the BrightScript equivalent of SceneGraph XML file node creation

Supported methods

getHttpAgent() as Object

Description

Returns the roHttpAgent object for the node.

Return Value

The roHttpAgent object for the node, which may be one of the following:

  • the node roHttpAgent object, if it was set using setHttpAgent()
  • the roHttpAgent object of the closest ancestor node that has an roHttpAgent set
  • the default roHttpAgent object for the application that contains the node

setHttpAgent(HTTP_agent as Object) as Boolean

Sets an roHttpAgent object for the node.

Parameters

NameTypeDescription
HTTP_agentObjectThe roHttpAgent object to be set for the node.

Return Value

A flag indicating whether the roHttpAgent object was successfully set.