When the application detects a successful device connection, the UI should be adapted to act as a remote control for an enhanced casting experience.
For details, see step 4 in How to Develop.