gh-pages / com.nextfaze.devfun.core
Package com.nextfaze.devfun.core
Core DevFun package - handles loading and processing of modules and definitions.
Types
| Name | Summary |
|---|---|
| AbstractDevFunModule | abstract class AbstractDevFunModule : DevFunModuleImplementation of DevFunModule providing various convenience functions. |
| ActivityProvider | interface ActivityProvider : () -> Activity?Function signature of DevFun’s activity tracker/provider. |
| ActivityTracker | interface ActivityTrackerActivity tracker that provides the currently (resumed) activity if present. |
| Composite | interface Composite<T : Any> : Iterable<T>Use by providers to facilitate user provided types T to the composting provider. |
| DevFun | class DevFunPrimary entry point and initializer of DevFun and associated libraries. |
| DevFunInitializerProvider | class DevFunInitializerProvider : ContentProviderUsed to automatically initialize DevFun without user input. |
| DevFunModule | interface DevFunModuleModules that extend/use the functionality of DevFun. |
| ForegroundTracker | interface ForegroundTrackerApplication foreground state tracker. |
Type Aliases
| Name | Summary |
|---|---|
| ForegroundChangeListener | typealias ForegroundChangeListener = (foreground: Boolean) -> UnitFunction signature of callbacks for foreground status changes. |
| OnInitialized | typealias OnInitialized = DevFun.() -> UnitCallback signature if/when DevFun has been initialized. |
Properties
| Name | Summary |
|---|---|
| devFun | val devFun: DevFunCurrently active/initialized instance of DevFun |
| devFunVerbose | var devFunVerbose: BooleanControls trace-level logging. Disabled ( false) by default. |
| isDevFunInitialized | val isDevFunInitialized: BooleanFlag indicating if DevFun has been initialized yet. |
| resumedActivity | val ActivityTracker.resumedActivity: Activity?Extension function to only get the activity if it is resumed. |
Functions
| Name | Summary |
|---|---|
| call | fun FunctionItem.call(invoker: Invoker = devFun.get()): InvokeResult?Convenience function for invoking a FunctionItem using the current devFun instance. |