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
onError will be called. Each call to the
server will result in invocation of either a single callback method or
Stream extension supports multiple responses for each call.
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.
void onError(ErrorReason errorReason)
onErroris called include the session being closed, a communication timeout, or a problem with the provided parameters. No further calls will be made to this callback for the call context.
errorReason- a value representing the error; this can be one of constants defined in
ErrorReason, or a feature-specific reason
Copyright © 2020 Push Technology Ltd. All Rights Reserved.