Rename all The c++ JNI classes
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/272 Reviewed By: passy Differential Revision: D9861432 Pulled By: jknoxville fbshipit-source-id: 523b8fc28541b922bbcc0939514f4ddd0a3fc1b0
This commit is contained in:
committed by
Facebook Github Bot
parent
a480be90a2
commit
9d9fa17134
@@ -66,7 +66,7 @@ Using the `SonarConnection` object you can register a receiver of a desktop meth
|
||||
```java
|
||||
connection.receive("getData", new SonarReceiver() {
|
||||
@Override
|
||||
public void onReceive(SonarObject params, SonarResponder responder) throws Exception {
|
||||
public void onReceive(SonarObject params, FlipperResponder responder) throws Exception {
|
||||
responder.success(
|
||||
new SonarObject.Builder()
|
||||
.put("data", MyData.get())
|
||||
@@ -87,7 +87,7 @@ connection.receive("getData", new SonarReceiver() {
|
||||
|
||||
- (void)didConnect:(SonarConnection*)connection
|
||||
{
|
||||
[connection receive:@"getData" withBlock:^(NSDictionary *params, SonarResponder *responder) {
|
||||
[connection receive:@"getData" withBlock:^(NSDictionary *params, FlipperResponder *responder) {
|
||||
[responder success:@{
|
||||
@"data":[MyData get],
|
||||
}];
|
||||
@@ -104,7 +104,7 @@ connection.receive("getData", new SonarReceiver() {
|
||||
```c++
|
||||
void MySonarPlugin::didConnect(std::shared_ptr<SonarConnection> conn) {
|
||||
conn->receive("getData", [](const folly::dynamic ¶ms,
|
||||
std::unique_ptr<SonarResponder> responder) {
|
||||
std::unique_ptr<FlipperResponder> responder) {
|
||||
dynamic response = folly::dynamic::object("data", getMyData());
|
||||
responder->success(response);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user