Add support for querying the desired rotation setting from Java.