Enables OkHttpClient instrumentation to collect network insights.
It must be called on the main UI thread after the OkHttpClient is set.
Once the method is invoked, Workspace ONE Intelligence SDK will
automatically log network calls made with the returned instrumented client
to the Network Insights page of the Workspace ONE Intelligence portal.
Here’s an example of how to instrument a client:
OkHttpClient uninstrumentedClient = new OkHttpClient();
OkHttpClient instrumentedClient = Crittercism.getNetworkInstrumentation().instrumentOkHttpClient(uninstrumentedClient);
// now you can use the instrumented client for network calls (on a different thread)
instrumentedClient.newCall(...).execute();