android-components / mozilla.components.browser.state.action / TrackingProtectionAction

TrackingProtectionAction

sealed class TrackingProtectionAction : BrowserAction (source)

BrowserAction implementations related to updating the TrackingProtectionState of a single SessionState inside BrowserState.

Types

Name Summary
ClearTrackersAction data class ClearTrackersAction : TrackingProtectionAction
Clears the TrackingProtectionState.blockedTrackers and TrackingProtectionState.blockedTrackers lists.
ToggleAction data class ToggleAction : TrackingProtectionAction
Updates the TrackingProtectionState.enabled flag.
ToggleExclusionListAction data class ToggleExclusionListAction : TrackingProtectionAction
Updates the TrackingProtectionState.ignoredOnTrackingProtection flag.
TrackerBlockedAction data class TrackerBlockedAction : TrackingProtectionAction
Adds a Tracker to the TrackingProtectionState.blockedTrackers list.
TrackerLoadedAction data class TrackerLoadedAction : TrackingProtectionAction
Adds a Tracker to the TrackingProtectionState.loadedTrackers list.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.

Inheritors

Name Summary
ClearTrackersAction data class ClearTrackersAction : TrackingProtectionAction
Clears the TrackingProtectionState.blockedTrackers and TrackingProtectionState.blockedTrackers lists.
ToggleAction data class ToggleAction : TrackingProtectionAction
Updates the TrackingProtectionState.enabled flag.
ToggleExclusionListAction data class ToggleExclusionListAction : TrackingProtectionAction
Updates the TrackingProtectionState.ignoredOnTrackingProtection flag.
TrackerBlockedAction data class TrackerBlockedAction : TrackingProtectionAction
Adds a Tracker to the TrackingProtectionState.blockedTrackers list.
TrackerLoadedAction data class TrackerLoadedAction : TrackingProtectionAction
Adds a Tracker to the TrackingProtectionState.loadedTrackers list.