|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface PackageLoader.ISourceLoadedCallback
Interface for the callback called by
PackageLoader.loadPackages(boolean, ISourceLoadedCallback).
onUpdateSource(com.android.sdklib.internal.repository.sources.SdkSource, com.android.sdklib.internal.repository.packages.Package[])
with the list of packages found in that source.
By returning true from onUpdateSource(com.android.sdklib.internal.repository.sources.SdkSource, com.android.sdklib.internal.repository.packages.Package[]), the client tells the loader to
continue and process the next source. By returning false, it tells to stop loading.
The onLoadCompleted() method is guaranteed to be called at the end, no
matter how the loader stopped, so that the client can clean up or perform any
final action.
| Method Summary | |
|---|---|
void |
onLoadCompleted()
This method is guaranteed to be called at the end, no matter how the loader stopped, so that the client can clean up or perform any final action. |
boolean |
onUpdateSource(SdkSource source,
Package[] packages)
After processing each source, the package loader calls this method with the list of packages found in that source. |
| Method Detail |
|---|
boolean onUpdateSource(SdkSource source,
Package[] packages)
onUpdateSource(com.android.sdklib.internal.repository.sources.SdkSource, com.android.sdklib.internal.repository.packages.Package[]), the client tells
the loader to continue and process the next source.
By returning false, it tells to stop loading.
Important: This method is called from a sub-thread, so clients which
try to access any UI widgets must wrap their calls into
Display.syncExec(Runnable) or Display.asyncExec(Runnable).
packages - All the packages loaded from the source. Never null.
void onLoadCompleted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||