AI2 Component
(Version nb184)
AsyncCallbackFacade.java
Go to the documentation of this file.
1
// -*- mode: java; c-basic-offset: 2; -*-
2
// Copyright 2016-2017 MIT, All rights reserved
3
// Released under the Apache License, Version 2.0
4
// http://www.apache.org/licenses/LICENSE-2.0
5
6
package
com.google.appinventor.components.runtime.util;
7
18
public
abstract
class
AsyncCallbackFacade
<S, T>
implements
AsyncCallbackPair
<S> {
19
protected
final
AsyncCallbackPair<T>
callback
;
20
21
public
AsyncCallbackFacade
(
AsyncCallbackPair<T>
target) {
22
this.callback = target;
23
}
24
25
@Override
26
public
void
onFailure
(String message) {
27
this.callback.
onFailure
(message);
28
}
29
}
com.google.appinventor.components.runtime.util.AsyncCallbackPair.onFailure
void onFailure(String message)
com.google.appinventor.components.runtime.util.AsyncCallbackFacade
Definition:
AsyncCallbackFacade.java:18
com.google.appinventor.components.runtime.util.AsyncCallbackFacade.onFailure
void onFailure(String message)
Definition:
AsyncCallbackFacade.java:26
com.google.appinventor.components.runtime.util.AsyncCallbackFacade.AsyncCallbackFacade
AsyncCallbackFacade(AsyncCallbackPair< T > target)
Definition:
AsyncCallbackFacade.java:21
com.google.appinventor.components.runtime.util.AsyncCallbackFacade.callback
final AsyncCallbackPair< T > callback
Definition:
AsyncCallbackFacade.java:19
com.google.appinventor.components.runtime.util.AsyncCallbackPair
Definition:
AsyncCallbackPair.java:17
com
google
appinventor
components
runtime
util
AsyncCallbackFacade.java
Generated by
1.8.16