Search in sources :

Example 1 with ScreencastDispatcher

use of com.facebook.stetho.inspector.screencast.ScreencastDispatcher in project stetho by facebook.

the class Page method startScreencast.

@ChromeDevtoolsMethod
public void startScreencast(final JsonRpcPeer peer, JSONObject params) {
    final StartScreencastRequest request = mObjectMapper.convertValue(params, StartScreencastRequest.class);
    if (mScreencastDispatcher == null) {
        mScreencastDispatcher = new ScreencastDispatcher();
        mScreencastDispatcher.startScreencast(peer, request);
    }
}
Also used : ScreencastDispatcher(com.facebook.stetho.inspector.screencast.ScreencastDispatcher) ChromeDevtoolsMethod(com.facebook.stetho.inspector.protocol.ChromeDevtoolsMethod)

Aggregations

ChromeDevtoolsMethod (com.facebook.stetho.inspector.protocol.ChromeDevtoolsMethod)1 ScreencastDispatcher (com.facebook.stetho.inspector.screencast.ScreencastDispatcher)1