Queries the AR session for all the planes currently being tracked in the world, these are detected over time if ARSetPlaneDetectionMode is turned on. Returns the number of planes found. This can be used to show the detected planes to the user by creating some plane objects with CreateObjectPlane and placing them at the given position, with the given rotation, and size. When you are done checking the results you should call ARGetPlanesFinish to clean up any resources used in the check.
integer ARGetPlanes( reserved )