public class LibsBuilder
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
aboutAppName |
java.lang.String |
aboutAppSpecial1 |
java.lang.String |
aboutAppSpecial1Description |
java.lang.String |
aboutAppSpecial2 |
java.lang.String |
aboutAppSpecial2Description |
java.lang.String |
aboutAppSpecial3 |
java.lang.String |
aboutAppSpecial3Description |
java.lang.String |
aboutDescription |
java.lang.Boolean |
aboutShowIcon |
java.lang.Boolean |
aboutShowVersion |
java.lang.Boolean |
aboutShowVersionCode |
java.lang.Boolean |
aboutShowVersionName |
java.lang.String |
aboutVersionString |
Colors |
activityColor |
Libs.ActivityStyle |
activityStyle |
java.lang.Integer |
activityTheme |
java.lang.String |
activityTitle |
java.lang.Boolean |
autoDetect |
java.lang.Boolean |
checkCachedDetection |
java.lang.String[] |
excludeLibraries |
java.lang.String[] |
fields |
java.lang.String[] |
internalLibraries |
java.util.Comparator<Library> |
libraryComparator |
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> |
libraryModification |
LibTaskExecutor |
libTaskExecutor |
java.lang.Class |
ownLibsActivityClass |
java.lang.Boolean |
showLicense |
java.lang.Boolean |
showLicenseDialog |
boolean |
showLoadingProgress |
java.lang.Boolean |
showVersion |
java.lang.Boolean |
sort |
| Constructor and Description |
|---|
LibsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
activity(android.content.Context ctx)
activity() method to start the application
|
FastAdapter |
adapter(android.content.Context context)
builder to build an adapter out of the given information ;D
|
LibsFragment |
fragment()
supportFragment() method to build and create the fragment with the set params
|
android.content.Intent |
intent(android.content.Context ctx)
intent() method to build and create the intent with the set params
|
android.content.Intent |
intent(android.content.Context ctx,
java.lang.Class clazz)
intent() method to build and create the intent with the set params
|
void |
start(android.content.Context ctx)
start() method to start the application
|
LibsSupportFragment |
supportFragment()
supportFragment() method to build and create the fragment with the set params
|
LibsBuilder |
withAboutAppName(java.lang.String aboutAppName)
Builder method to enable the display and set the text of the application name in the about this app view
|
LibsBuilder |
withAboutDescription(java.lang.String aboutDescription)
Builder method to enable the display and set the text of the application description as about this app view
|
LibsBuilder |
withAboutIconShown(boolean aboutShowIcon)
Builder method to enable the display of the application icon as about this app view
|
LibsBuilder |
withAboutSpecial1(java.lang.String aboutAppSpecial1) |
LibsBuilder |
withAboutSpecial1Description(java.lang.String aboutAppSpecial1Description) |
LibsBuilder |
withAboutSpecial2(java.lang.String aboutAppSpecial2) |
LibsBuilder |
withAboutSpecial2Description(java.lang.String aboutAppSpecial2Description) |
LibsBuilder |
withAboutSpecial3(java.lang.String aboutAppSpecial3) |
LibsBuilder |
withAboutSpecial3Description(java.lang.String aboutAppSpecial3Description) |
LibsBuilder |
withAboutVersionShown(boolean aboutShowVersion)
Builder method to enable the display of the application version name and code as about this app view
|
LibsBuilder |
withAboutVersionShownCode(boolean aboutShowVersion)
Builder method to enable the display of the application version code as about this app view
|
LibsBuilder |
withAboutVersionShownName(boolean aboutShowVersion)
Builder method to enable the display of the application version name as about this app view
|
LibsBuilder |
withAboutVersionString(java.lang.String aboutVersionString)
Builder method to enable the display and set the text of the application version in the about this app view
|
LibsBuilder |
withActivityColor(Colors activityColor)
Builder method to set the ActivityColor
|
LibsBuilder |
withActivityStyle(Libs.ActivityStyle libraryStyle)
Builder method to set the ActivityStyle
|
LibsBuilder |
withActivityTheme(int activityTheme)
Builder method to set the activity theme
|
LibsBuilder |
withActivityTitle(java.lang.String activityTitle)
Builder method to set the ActivityTitle
|
LibsBuilder |
withAutoDetect(boolean autoDetect)
Builder method to disable autoDetect (default: enabled)
|
LibsBuilder |
withCheckCachedDetection(boolean checkCachedDetection)
Builder method to disable checking the cached autodetected libraries (per version) (default: enabled)
|
LibsBuilder |
withExcludedLibraries(java.lang.String... excludeLibraries)
Builder method to exclude specific libraries
|
LibsBuilder |
withFields(java.lang.reflect.Field[] fields)
Builder method to pass the R.string.class.getFields() array to the fragment/activity so we can also include all ressources which are within libraries or your app.
|
LibsBuilder |
withFields(java.lang.String... fields)
Builder method to pass the Libs.toStringArray(R.string.class.getFields()) array to the fragment/activity so we can also include all ressources which are within libraries or your app.
|
LibsBuilder |
withLayoutAnimationController(android.view.animation.LayoutAnimationController layoutAnimationController)
Builder method to set the LayoutAnimationController for the RecyclerView
|
LibsBuilder |
withLibraries(java.lang.String... libraries)
Builder method to pass manual libraries (libs which are not autoDetected)
|
LibsBuilder |
withLibraryComparator(java.util.Comparator<Library> libraryComparator)
Builder method to enable custom sorting of the libraries (default: null)
|
LibsBuilder |
withLibraryModification(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> libraryModification)
Builder method to modify specific libraries.
|
LibsBuilder |
withLibraryModification(java.lang.String library,
Libs.LibraryFields modificationKey,
java.lang.String modificationValue)
Builder helper method to set modifications for specific libraries
|
LibsBuilder |
withLibsRecyclerViewListener(LibsConfiguration.LibsRecyclerViewListener recyclerViewListener)
Builder method to set the LibsRecyclerViewListener for the AboutLibraries recyclerView elements
|
LibsBuilder |
withLibTaskCallback(LibTaskCallback libTaskCallback)
Builder method to define a custom callback which is invoked every time the LibraryTask gets executed.
|
LibsBuilder |
withLibTaskExecutor(LibTaskExecutor libTaskExecutor)
Builder method to define a custom Thread Executor for asynchronous operations
|
LibsBuilder |
withLicenseDialog(boolean showLicenseDialog)
Builder method to disable the license display as dialog (default: enabled)
|
LibsBuilder |
withLicenseShown(boolean showLicense)
Builder method to enable the license display (default: disabled)
|
LibsBuilder |
withListener(LibsConfiguration.LibsListener libsListener)
Builder method to set the LibsListener for the AboutLibraries actions
|
LibsBuilder |
withOwnLibsActivityClass(java.lang.Class clazz)
Builder method to pass the an own LibsActivity.
|
LibsBuilder |
withShowLoadingProgress(boolean showLoadingProgress)
Builder method to allow you to disable the automatically shown loading progressBar while the libraries are loading
|
LibsBuilder |
withSortEnabled(boolean sort)
Builder method to disable sort (default: enabled)
|
LibsBuilder |
withUiListener(LibsConfiguration.LibsUIListener uiListener)
Builder method to set the LibsUIListener for the AboutLibraries view to hook into the view creation
|
LibsBuilder |
withVersionShown(boolean showVersion)
Builder method to hide the version number (default: enabled)
|
public java.lang.String[] fields
public java.lang.String[] internalLibraries
public java.lang.String[] excludeLibraries
public java.lang.Boolean autoDetect
public java.lang.Boolean checkCachedDetection
public java.lang.Boolean sort
public java.util.Comparator<Library> libraryComparator
public java.lang.Boolean showLicense
public java.lang.Boolean showLicenseDialog
public java.lang.Boolean showVersion
public boolean showLoadingProgress
public java.lang.Boolean aboutShowIcon
public java.lang.String aboutVersionString
public java.lang.String aboutAppName
public java.lang.Boolean aboutShowVersion
public java.lang.String aboutDescription
public java.lang.Boolean aboutShowVersionName
public java.lang.Boolean aboutShowVersionCode
public java.lang.String aboutAppSpecial1
public java.lang.String aboutAppSpecial1Description
public java.lang.String aboutAppSpecial2
public java.lang.String aboutAppSpecial2Description
public java.lang.String aboutAppSpecial3
public java.lang.String aboutAppSpecial3Description
public java.lang.Integer activityTheme
public java.lang.String activityTitle
public Colors activityColor
public Libs.ActivityStyle activityStyle
public LibTaskExecutor libTaskExecutor
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> libraryModification
public java.lang.Class ownLibsActivityClass
public LibsBuilder withOwnLibsActivityClass(java.lang.Class clazz)
clazz - Classpublic LibsBuilder withFields(java.lang.reflect.Field[] fields)
fields - R.string.class.getFields()public LibsBuilder withFields(java.lang.String... fields)
fields - Libs.toStringArray(R.string.class.getFields())public LibsBuilder withLibraries(java.lang.String... libraries)
libraries - the identifiers of the manual added librariespublic LibsBuilder withExcludedLibraries(java.lang.String... excludeLibraries)
excludeLibraries - the identifiers of the libraries which should be excludedpublic LibsBuilder withAutoDetect(boolean autoDetect)
autoDetect - enabled or disabledpublic LibsBuilder withCheckCachedDetection(boolean checkCachedDetection)
checkCachedDetection - enabled or disabledpublic LibsBuilder withSortEnabled(boolean sort)
sort - enabled or disabledpublic LibsBuilder withLibraryComparator(java.util.Comparator<Library> libraryComparator)
libraryComparator - comparator to customize the sorting of the librariespublic LibsBuilder withLicenseShown(boolean showLicense)
showLicense - enabled or disabledpublic LibsBuilder withLicenseDialog(boolean showLicenseDialog)
showLicenseDialog - enabled or disabledpublic LibsBuilder withVersionShown(boolean showVersion)
showVersion - enabled or disabledpublic LibsBuilder withAboutIconShown(boolean aboutShowIcon)
aboutShowIcon - enabled or disabledpublic LibsBuilder withAboutVersionShown(boolean aboutShowVersion)
aboutShowVersion - enabled or disabledpublic LibsBuilder withAboutVersionShownName(boolean aboutShowVersion)
aboutShowVersion - enabled or disabledpublic LibsBuilder withAboutVersionShownCode(boolean aboutShowVersion)
aboutShowVersion - enabled or disabledpublic LibsBuilder withAboutVersionString(java.lang.String aboutVersionString)
aboutVersionString - enabled or disabledpublic LibsBuilder withAboutAppName(java.lang.String aboutAppName)
aboutAppName - the name of this applicationpublic LibsBuilder withAboutDescription(java.lang.String aboutDescription)
aboutDescription - the description of this applicationpublic LibsBuilder withAboutSpecial1(java.lang.String aboutAppSpecial1)
aboutAppSpecial1 - the special button textpublic LibsBuilder withAboutSpecial1Description(java.lang.String aboutAppSpecial1Description)
aboutAppSpecial1Description - the special dialog textpublic LibsBuilder withAboutSpecial2(java.lang.String aboutAppSpecial2)
aboutAppSpecial2 - the special button textpublic LibsBuilder withAboutSpecial2Description(java.lang.String aboutAppSpecial2Description)
aboutAppSpecial2Description - the special dialog textpublic LibsBuilder withAboutSpecial3(java.lang.String aboutAppSpecial3)
aboutAppSpecial3 - the special button textpublic LibsBuilder withAboutSpecial3Description(java.lang.String aboutAppSpecial3Description)
aboutAppSpecial3Description - the special dialog textpublic LibsBuilder withActivityTheme(int activityTheme)
activityTheme - as example R.theme.AppTheme (just for the activity)public LibsBuilder withActivityTitle(java.lang.String activityTitle)
activityTitle - the activity title (just for the activity)public LibsBuilder withActivityColor(Colors activityColor)
activityColor - the activity color (just for the activity)public LibsBuilder withActivityStyle(Libs.ActivityStyle libraryStyle)
libraryStyle - LibraryStyles.LIGHT / DARK / LIGHT_DARK_TOOLBARpublic LibsBuilder withLibraryModification(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> libraryModification)
libraryModification - an HashMap identified by libraryID containing an HashMap with the modifications identified by elementID.public LibsBuilder withLibraryModification(java.lang.String library, Libs.LibraryFields modificationKey, java.lang.String modificationValue)
library - the library to be modifiedmodificationKey - the identifier for the specific modificationmodificationValue - the value for the specific modificationpublic LibsBuilder withListener(LibsConfiguration.LibsListener libsListener)
libsListener - the listener to be notifiedpublic LibsBuilder withLibsRecyclerViewListener(LibsConfiguration.LibsRecyclerViewListener recyclerViewListener)
recyclerViewListener - public LibsBuilder withUiListener(LibsConfiguration.LibsUIListener uiListener)
uiListener - public LibsBuilder withLayoutAnimationController(android.view.animation.LayoutAnimationController layoutAnimationController)
layoutAnimationController - public LibsBuilder withLibTaskExecutor(LibTaskExecutor libTaskExecutor)
libTaskExecutor - public LibsBuilder withLibTaskCallback(LibTaskCallback libTaskCallback)
libTaskCallback - public LibsBuilder withShowLoadingProgress(boolean showLoadingProgress)
showLoadingProgress - public FastAdapter adapter(android.content.Context context)
context - the current contextpublic android.content.Intent intent(android.content.Context ctx)
public android.content.Intent intent(android.content.Context ctx,
java.lang.Class clazz)
public void start(android.content.Context ctx)
public void activity(android.content.Context ctx)
public LibsSupportFragment supportFragment()
public LibsFragment fragment()