public class Fabric
extends Object
Kit
's.Modifier and Type | Class and Description |
---|---|
static class |
Fabric.Builder
Fluent API for creating
Fabric instances. |
Modifier and Type | Field and Description |
---|---|
static String |
TAG
Logging tag.
|
Modifier and Type | Method and Description |
---|---|
ActivityLifecycleManager |
getActivityLifecycleManager() |
String |
getAppIdentifier()
The value for the Application Identifier (defaults to package name).
|
String |
getAppInstallIdentifier()
The overridden value for the Application Install Identifier, or a generated value.
|
Activity |
getCurrentActivity() |
ExecutorService |
getExecutorService() |
String |
getIdentifier() |
static <T extends Kit> |
getKit(Class<T> cls) |
Collection<Kit> |
getKits()
Returns the
Kit s registered with SDK. |
static Logger |
getLogger()
Returns the global
Logger . |
Handler |
getMainHandler() |
String |
getVersion() |
static boolean |
isDebuggable()
Returns the global value for debug mode.
|
static boolean |
isInitialized()
Returns true when all kits have finished asynchronous initialization.
|
Fabric |
setCurrentActivity(Activity activity)
Used for Fabric to Display UI components.
|
static Fabric |
with(Context context,
Kit... kits)
Entry point to initialize Fabric and contained Kits.
|
static Fabric |
with(Fabric fabric)
Entry point to initialize Fabric and contained Kits.
|
public static final String TAG
public static Fabric with(Context context, Kit... kits)
context
- Android context used for initializationkits
- List of Kit
to be built, must not be emptyfor more verbose controls.
public static Fabric with(Fabric fabric)
fabric
- instance to initialize and set as primarypublic Fabric setCurrentActivity(Activity activity)
public Activity getCurrentActivity()
Activity
if available, may be null
.
Caller is expected to check lifecycle state before using, see Activity.isFinishing()
.public String getVersion()
public String getIdentifier()
public ActivityLifecycleManager getActivityLifecycleManager()
public ExecutorService getExecutorService()
public Handler getMainHandler()
public static <T extends Kit> T getKit(Class<T> cls)
public static boolean isDebuggable()
public static boolean isInitialized()
public String getAppIdentifier()
public String getAppInstallIdentifier()