Update getPlugin docs

Summary: Per title.

Reviewed By: jknoxville

Differential Revision: D13304655

fbshipit-source-id: 8f9e78dbee043e749b1fdd2d4a540eeece66734b
This commit is contained in:
Pascal Hartig
2018-12-05 08:01:38 -08:00
committed by Facebook Github Bot
parent 214f112c14
commit dfd2e279bc

View File

@@ -17,7 +17,7 @@ final FlipperClient client = AndroidFlipperClient.getInstance(context);
// Client may be null if AndroidFlipperClient.createInstance() was never called
// which is the case in production builds.
if (client != null) {
final MyFlipperPlugin plugin = client.getPlugin("MyFlipperPlugin");
final MyFlipperPlugin plugin = client.getPluginByClass(MyFlipperPlugin.class);
plugin.sendData(myData);
}
```