Constructor and Description |
---|
PkRSS.Builder(Context context)
Start building a new
PkRSS instance. |
Modifier and Type | Method and Description |
---|---|
PkRSS |
build()
Creates a
PkRSS instance. |
void |
buildSingleton()
Creates a
PkRSS instance and assigns it to the
global PkRSS.singleton instance if it doesn't already exists. |
PkRSS.Builder |
downloader(Downloader downloader)
Specifies a custom
Downloader Object for which to load data with. |
PkRSS.Builder |
loggingEnabled(boolean enabled)
Toggle whether debug logging is enabled.
|
PkRSS.Builder |
parser(Parser parser)
Specifies a custom
Parser Object for which to parse data with. |
void |
replaceSingleton()
Use wisely!
|
public PkRSS.Builder(Context context)
PkRSS
instance.public PkRSS.Builder downloader(Downloader downloader)
Downloader
Object for which to load data with. DefaultDownloader
or OkHttpDownloader
(See more... Utils.createDefaultDownloader(Context)
)public PkRSS.Builder parser(Parser parser)
public PkRSS.Builder loggingEnabled(boolean enabled)
false
public void buildSingleton()
PkRSS
instance and assigns it to the
global PkRSS.singleton
instance if it doesn't already exists.public void replaceSingleton()
Creates a PkRSS
instance and replaces the existing
global PkRSS.singleton
instance if the hash codes differ.
Do NOT use this unless you really have to!