public static interface ContentBlocking.Delegate
Modifier and Type | Method and Description |
---|---|
default void |
onContentBlocked(GeckoSession session,
ContentBlocking.BlockEvent event)
A content element has been blocked from loading.
|
default void |
onContentLoaded(GeckoSession session,
ContentBlocking.BlockEvent event)
A content element that could be blocked has been loaded.
|
@UiThread default void onContentBlocked(@NonNull GeckoSession session, @NonNull ContentBlocking.BlockEvent event)
GeckoRuntimeSettings
and
enable content blocking via GeckoSessionSettings
.session
- The GeckoSession that initiated the callback.event
- The ContentBlocking.BlockEvent
details.@UiThread default void onContentLoaded(@NonNull GeckoSession session, @NonNull ContentBlocking.BlockEvent event)
session
- The GeckoSession that initiated the callback.event
- The ContentBlocking.BlockEvent
details.