The one way a public method reaches the native side, and the one place a request names itself when the app's completion handler throws.
More...
|
| static void | Send< T > (string method, object request, Action< T, AdaptyError > completionHandler, [CallerMemberName] string caller=null) |
| | Sends one request to the native side and hands the typed reply to completionHandler .
|
| static void | SendVoid (string method, object request, Action< AdaptyError > completionHandler, [CallerMemberName] string caller=null) |
| | Sends one request whose reply carries no value of its own, and reports only the error.
|
| static void | FailWrongParam (string method, string detail, Action< AdaptyError > completionHandler, [CallerMemberName] string caller=null) |
| | Reports an argument the SDK can see is wrong before sending — a null the request cannot carry, a graph that cannot be encoded — with the code the native side answers a wrong argument with.
|
| static void | FailWrongParam< T > (string method, string detail, Action< T, AdaptyError > completionHandler, [CallerMemberName] string caller=null) |
| | The typed twin of FailWrongParam(string, string, Action<AdaptyError>, string), for a request whose reply carries a value.
|
The one way a public method reaches the native side, and the one place a request names itself when the app's completion handler throws.
Send<T> and SendVoid are the only entry points: the raw transport is private, so a call site cannot reach the bridge without the guard, and neither can spell the diagnostic wrong - [CallerMemberName] is what fills the name in.
| void AdaptySDK.AdaptyRequest.FailWrongParam |
( |
string | method, |
|
|
string | detail, |
|
|
Action< AdaptyError > | completionHandler, |
|
|
[CallerMemberName] string | caller = null ) |
|
staticpackage |
Reports an argument the SDK can see is wrong before sending — a null the request cannot carry, a graph that cannot be encoded — with the code the native side answers a wrong argument with.
Without this the failure would leave the SDK synchronously, or ride to the native side as a null, and those call sites would report failure differently from every other public method.