Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: README.md

Issue 29678590: Issue 6307 - Introduce external engine created callback (Closed)
Patch Set: added 'clear..()' methods, updated README Created Jan. 26, 2018, 8:24 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: README.md
diff --git a/README.md b/README.md
index e6ce27f8d41a68c3e0d7c3289bd08e4e12bd28ce..3482ac838377ff9f660d364220571e0bc5f45541 100644
--- a/README.md
+++ b/README.md
@@ -230,6 +230,21 @@ Or you can use AdblockHelper:
// optional - provide preloaded subscription files in app resoruces
.preloadSubscriptions(AdblockHelper.PRELOAD_PREFERENCE_NAME, map);
+Sometimes it's desired to initialize or deinitialize FilterEngine instance
+when created:
+
+ AdblockHelper
+ .get()
+ .init(...)
+ .addEngineCreatedCallback(onAdblockEngineCreated)
+
+or disposed:
+
+ AdblockHelper
+ .get()
+ .init(...)
+ .addEngineDisposedCallback(onAdblockEngineDisposed)
+
Implement the following interfaces in your settings activity:
* `BaseSettingsFragment.Provider`

Powered by Google App Engine
This is Rietveld