DiffusionTM Android API 6.6.0-preview.1
public interface Callback
Direct extensions of this interface support a single callback each time the
callback is used in a call (the call context). If the call fails to
return a result, for example if the session is closed or the operation times
onDiscard will be called. Each call to the server
will result in invocation of either a single callback method or
In most cases where a Callback can be used it is also possible to use a
ContextCallback which may be more useful if there is a need to
correlate the Callback invocation with the request that it matches. For
example, if the same Callback is used for severals requests, it might be
useful to be able to associate the reply (or discard) with the request that
was made using some context object.
If the server returns a response for an unknown call context (typically a
late response for a call context has timed out), an error will be reported to
session error handler.
|Modifier and Type||Interface and Description|
Abstract default callback.
Copyright © 2020 Push Technology Ltd. All Rights Reserved.