public abstract class Kit<Result> extends Object implements Comparable<Kit>
Fabric.with(android.content.Context, Kit[])
Constructor and Description |
---|
Kit() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Kit another)
Compares
Kit 's using Dependency |
protected abstract Result |
doInBackground()
For heavy work to be done in initialization process on a background thread.
|
Context |
getContext() |
protected Collection<Task> |
getDependencies() |
Fabric |
getFabric() |
abstract String |
getIdentifier()
Must be implemented by Kit to allow plugin on-boarding
|
protected IdManager |
getIdManager() |
String |
getPath() |
abstract String |
getVersion() |
protected void |
onCancelled(Result result)
Called after
doInBackground() is cancelled on the UI thread |
protected void |
onPostExecute(Result result)
Called after
doInBackground() completes on the UI thread |
protected boolean |
onPreExecute()
Called before intialization on the UI thread
|
public abstract String getVersion()
protected boolean onPreExecute()
UnmetDependencyException
- if there's a
missing dependency that causes kit to fail initialization.protected abstract Result doInBackground()
Fabric.executorService
protected void onPostExecute(Result result)
doInBackground()
completes on the UI threadresult
- protected void onCancelled(Result result)
doInBackground()
is cancelled on the UI threadresult
- protected IdManager getIdManager()
public Context getContext()
Context
public abstract String getIdentifier()
public String getPath()
public int compareTo(Kit another)
Kit
's using Dependency
compareTo
in interface Comparable<Kit>
protected Collection<Task> getDependencies()