Mobile native

Screen Mirroring

You can mirror the device screen and sound to another device wirelessly using the screen mirroring feature. It follows the Wi-Fi Display Technical Specification and supports the feature as a sink, which receives shared data from a source device that supports the Wi-Fi Display, and displays it.

This feature is supported in mobile applications only.

The main features of the Screen Mirroring API include:

  • Managing the connection to the screen mirroring source

    You can connect to and disconnect from a screen mirroring source, and start, pause, and resume the screen mirroring sink.

  • Setting the properties

    You can set the resolution or display for the mirror.

  • Monitoring state changes in the screen mirroring sink

    To track state changes, you can register a callback with the scmirroring_sink_set_state_changed_cb() function. The callback is triggered when the screen mirroring state changes or an error occurs.

    Since all functions that change the state are synchronous (except for scmirroring_sink_connect(), scmirroring_sink_start(), scmirroring_sink_pause(), and scmirroring_sink_resume()) most function results are passed to the application through the callback mechanism.

The following figures illustrates the state and function call diagrams of the screen mirroring sink.

Figure: State diagram

State diagram

Figure: Function call diagram

Function call diagram

Go to top