It looks like this is only available in G4P 4.3.3, which I can’t seem to find a download for (4.3.2 is the most recent I can find). When I look through both the java docs and even the source of previous versions I’m not finding this method.
How are you getting this error? From an example sketch? From code you wrote, or found somewhere?
Where did you find this information?