Index: libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
index c43de392ce62a1bf1cbef719ca31049974701a66..59fa1cca30bc8cf46e3b38b6b1cd2971535f3afe 100644 |
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
@@ -181,6 +181,21 @@ public final class FilterEngine implements Disposable |
return getAllowedConnectionType(this.ptr); |
} |
+ public void setAcceptableAdsEnabled(final boolean enabled) |
+ { |
+ setAcceptableAdsEnabled(this.ptr, enabled); |
+ } |
+ |
+ public boolean isAcceptableAdsEnabled() |
+ { |
+ return isAcceptableAdsEnabled(this.ptr); |
+ } |
+ |
+ public String getAcceptableAdsSubscriptionURL() |
+ { |
+ return getAcceptableAdsSubscriptionURL(this.ptr); |
+ } |
+ |
@Override |
public void dispose() |
{ |
@@ -255,5 +270,11 @@ public final class FilterEngine implements Disposable |
private final static native String getAllowedConnectionType(long ptr); |
+ private final static native void setAcceptableAdsEnabled(long ptr, boolean enabled); |
+ |
+ private final static native boolean isAcceptableAdsEnabled(long ptr); |
+ |
+ private final static native String getAcceptableAdsSubscriptionURL(long ptr); |
+ |
private final static native void dtor(long ptr); |
} |