T - the type of data to be passed on onSuccesspublic abstract class AbstractFragmentCallback<T> extends AbstractCallback<T>
LoaderPipe which consume
callbacks of this type will supply it with a Activity instance before
onSuccess or onFailure are called. This should not be done by the user.
These calls are not guaranteed to be thread safe. Instances of the callback
should not be shared among Activities and Fragments.
After onSuccess or onFailure have been called, the fragment will be set to
null.| Constructor and Description |
|---|
AbstractFragmentCallback(Object... params)
This accepts an arbitrary list of Object and uses
Arrays.hashCode(java.lang.Object[]) to
generate a hashcode. |
| Modifier and Type | Method and Description |
|---|---|
protected android.app.Fragment |
getFragment()
This method should be called in the onSuccess or onFailure methods of
subclasses.
|
void |
setFragment(android.app.Fragment fragment)
This method is called by
AbstractPipeLoader or
AbstractAuthenticationLoader during the onLoadComplete
method before onSuccess or onFailure are called. |
hashCodepublic AbstractFragmentCallback(Object... params)
Arrays.hashCode(java.lang.Object[]) to
generate a hashcode. This code is used to provided the loader manager
with a unique value to determine uniqueness of calls to read, etc.params - A collection of objects which will be used to generate a
hashcodeprotected android.app.Fragment getFragment()
public void setFragment(android.app.Fragment fragment)
AbstractPipeLoader or
AbstractAuthenticationLoader during the onLoadComplete
method before onSuccess or onFailure are called.fragment - the fragment which will handle this callbackCopyright © 2015 JBoss by Red Hat. All rights reserved.