Send with raw parameters

Summary:
On Android we already had an API to send raw arguments i.e. raw json as params.

This just adds feature parity on iOS.

Reviewed By: LukeDefeo

Differential Revision: D41433777

fbshipit-source-id: abd47f987b9e2b451100e81acf6fea61cd876807
This commit is contained in:
Lorenzo Blasa
2022-11-28 09:45:53 -08:00
committed by Facebook GitHub Bot
parent c0cf7d62d6
commit 1406e291ee
3 changed files with 13 additions and 0 deletions

View File

@@ -35,6 +35,10 @@
[self sendInternal:method withParams:params];
}
- (void)send:(NSString*)method withRawParams:(NSString*)params {
conn_->sendRaw([method UTF8String], [params UTF8String]);
}
- (void)send:(NSString*)method withArrayParams:(NSArray*)params {
[self sendInternal:method withParams:params];
}

View File

@@ -23,6 +23,11 @@ Invoke a method on the Sonar desktop plugin with with a matching identifier.
*/
- (void)send:(NSString*)method withParams:(NSDictionary*)params;
/**
Invoke a method on the Sonar desktop plugin with with a matching identifier.
*/
- (void)send:(NSString*)method withRawParams:(NSString*)params;
/**
Invoke a method on the Sonar desktop plugin with with a matching identifier.
*/