public final class UtcTimingElementResolver extends Object implements Loader.Callback
UtcTimingElement
.Modifier and Type | Class and Description |
---|---|
static interface |
UtcTimingElementResolver.UtcTimingCallback
Callback for timing element resolution.
|
Modifier and Type | Method and Description |
---|---|
void |
onLoadCanceled(Loader.Loadable loadable)
Invoked when loading has been canceled.
|
void |
onLoadCompleted(Loader.Loadable loadable)
Invoked when the data source has been fully loaded.
|
void |
onLoadError(Loader.Loadable loadable,
IOException exception)
Invoked when the data source is stopped due to an error.
|
static void |
resolveTimingElement(UriDataSource uriDataSource,
UtcTimingElement timingElement,
long timingElementElapsedRealtime,
UtcTimingElementResolver.UtcTimingCallback callback)
Resolves a
UtcTimingElement . |
public static void resolveTimingElement(UriDataSource uriDataSource, UtcTimingElement timingElement, long timingElementElapsedRealtime, UtcTimingElementResolver.UtcTimingCallback callback)
UtcTimingElement
.uriDataSource
- A source to use should loading from a URI be necessary.timingElement
- The element to resolve.timingElementElapsedRealtime
- The SystemClock.elapsedRealtime()
timestamp at
which the element was obtained. Used if the element contains a timestamp directly.callback
- The callback to invoke on resolution or failure.public void onLoadCanceled(Loader.Loadable loadable)
Loader.Callback
onLoadCanceled
in interface Loader.Callback
loadable
- The loadable whose load has been canceled.public void onLoadCompleted(Loader.Loadable loadable)
Loader.Callback
onLoadCompleted
in interface Loader.Callback
loadable
- The loadable whose load has completed.public void onLoadError(Loader.Loadable loadable, IOException exception)
Loader.Callback
onLoadError
in interface Loader.Callback
loadable
- The loadable whose load has failed.