Search in sources :

Example 11 with ChromeDevtoolsMethod

use of com.facebook.stetho.inspector.protocol.ChromeDevtoolsMethod 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)11 JSONObject (org.json.JSONObject)6 JsonRpcError (com.facebook.stetho.inspector.jsonrpc.protocol.JsonRpcError)4 SharedPreferences (android.content.SharedPreferences)3 JsonRpcException (com.facebook.stetho.inspector.jsonrpc.JsonRpcException)3 SuppressLint (android.annotation.SuppressLint)2 SQLiteException (android.database.sqlite.SQLiteException)2 ComputedStyleAccumulator (com.facebook.stetho.inspector.elements.ComputedStyleAccumulator)2 StyleAccumulator (com.facebook.stetho.inspector.elements.StyleAccumulator)2 ArrayList (java.util.ArrayList)2 Cursor (android.database.Cursor)1 UncheckedCallable (com.facebook.stetho.common.UncheckedCallable)1 StyleRuleNameAccumulator (com.facebook.stetho.inspector.elements.StyleRuleNameAccumulator)1 ScreencastDispatcher (com.facebook.stetho.inspector.screencast.ScreencastDispatcher)1 List (java.util.List)1 Map (java.util.Map)1