android-components / mozilla.components.feature.session / SettingsUseCases

SettingsUseCases

class SettingsUseCases (source)

Contains use cases related to engine Settings.

Parameters

engine - reference to the application’s browser Engine.

store - the application’s BrowserStore.

Types

Name Summary
UpdateTrackingProtectionUseCase class UpdateTrackingProtectionUseCase
Updates the tracking protection policy to the given policy value when invoked. All active sessions are automatically updated with the new policy.

Constructors

Name Summary
<init> SettingsUseCases(engine: Engine, store: BrowserStore)
Contains use cases related to engine Settings.

Properties

Name Summary
updateTrackingProtection val updateTrackingProtection: UpdateTrackingProtectionUseCase

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.