A user interface abstraction API.