How to get the window coordinates in Cesium.

I want to get the windows leftup and rightdown coordinates .But I can't find which
function can do it.I think I can do it by get the camera's position.But I don't know how to do it,can you help me?

SceneTransforms.wgs84ToWindowCoordinates is what you want.