Add more details into supportsMethod usage. (#4365)

Summary:
## Changelog

Pull Request resolved: https://github.com/facebook/flipper/pull/4365

Reviewed By: antonk52

Differential Revision: D42918954

Pulled By: passy

fbshipit-source-id: 6f569cf32d5544308afab2bf11a245324601ead9
This commit is contained in:
Lukas Kurucz
2023-02-10 01:53:20 -08:00
committed by Facebook GitHub Bot
parent cd496aef8c
commit 9bc9b53017

View File

@@ -342,6 +342,8 @@ Opens a different plugin by id, optionally providing a deeplink to bring the tar
Usage: `client.supportsMethod(method: string): Promise<Boolean>` Usage: `client.supportsMethod(method: string): Promise<Boolean>`
Method must be called within [onConnect](#onconnect), otherwise will throw error.
Resolves to true if the client supports the specified method. Useful when adding functionality to existing plugins, when connectivity to older clients is still required. Also useful when client plugins are implemented on multiple platforms and don't all have feature parity. Resolves to true if the client supports the specified method. Useful when adding functionality to existing plugins, when connectivity to older clients is still required. Also useful when client plugins are implemented on multiple platforms and don't all have feature parity.
#### `showNotification` #### `showNotification`