Forum Discussion

Komag's avatar
Komag
Roku Guru
11 years ago

di.GetSupportedGraphicsResolutions() not working

BrightScript Debugger> di = CreateObject("roDeviceInfo")
BrightScript Debugger> ? di.getModel()
2500X
BrightScript Debugger> ? di.getsupportedgraphicsresolutions()
Member function not found in BrightScript Component or interface. (runtime error &hf4) in $LIVECOMPILE(489)

Is there a typo in the documentation, or does this function no longer work?

2 Replies

  • RokuKC's avatar
    RokuKC
    Roku Employee
    "Komag" wrote:
    BrightScript Debugger> di = CreateObject("roDeviceInfo")
    BrightScript Debugger> ? di.getModel()
    2500X
    BrightScript Debugger> ? di.getsupportedgraphicsresolutions()
    Member function not found in BrightScript Component or interface. (runtime error &hf4) in $LIVECOMPILE(489)

    Is there a typo in the documentation, or does this function no longer work?


    roDeviceInfo.GetSupportedGraphicsResolutions is a new API for firmware 7.0 (which hasn't released yet).
    (That should be indicated on the preliminary SDK docs, but apparently isn't).