Template:Sdk callback page: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
void callback_{{lc:{{{1|unknown}}}}}(VPInstance instance, int reason_code) { }</code></div> | void callback_{{lc:{{{1|unknown}}}}}(VPInstance instance, int reason_code) { }</code></div> | ||
{{{ | Sent to the client in response to {{sdk_method|{{{1|unknown}}}}}__NOTOC__ | ||
== Reason code ==__NOEDITSECTION__ | == Reason code ==__NOEDITSECTION__ | ||
This callback is passed a [[return code]] integer, which indicates whether the request was successful ({{code|0}}) or errored for any of these reasons: | This callback is passed a [[return code]] integer, which indicates whether the request was successful ({{code|0}}) or errored for any of these reasons: | ||
Line 21: | Line 21: | ||
== Usage == | == Usage == | ||
<pre>{{sdk callback page|Callback name | <pre>{{sdk callback page|Callback name | ||
|reasoncodes= | |reasoncodes= | ||
{{sdk return code row|name|cause}} | {{sdk return code row|name|cause}} |
Revision as of 21:13, 30 July 2018
Callback set and handler snippet
vp_callback_set(instance, VP_CALLBACK_UNKNOWN, callback_unknown);
void callback_unknown(VPInstance instance, int reason_code) { }
Sent to the client in response to vp_unknown()
Reason code
This callback is passed a return code integer, which indicates whether the request was successful (0
) or errored for any of these reasons:
Return code | Cause |
---|---|
VP_RC_SUCCESS |
Successful call (for methods that have a registered callback, it only means the request has been sent) |
Return attributes
- No attributes are returned in this callback
Behavior
- There is no special behavior for this callback
Examples
- This callback has no usage examples; please add at least one to this page
Usage
{{sdk callback page|Callback name |reasoncodes= {{sdk return code row|name|cause}} |returnattributes= {{sdk attribute row|type|name|description}} |behavior= |caveats= |examples= |seealso= }}