android-components / mozilla.components.support.migration / AbstractMigrationService

AbstractMigrationService

abstract class AbstractMigrationService (source)

Abstract implementation of a background service running a configured FennecMigrator.

An application using this implementation needs to extend this class and provide a FennecMigrator instance.

Constructors

Name Summary
<init> AbstractMigrationService()
Abstract implementation of a background service running a configured FennecMigrator.

Properties

Name Summary
migrationActivity abstract val migrationActivity: Class<out AbstractMigrationProgressActivity>
migrator abstract val migrator: FennecMigrator
store abstract val store: MigrationStore

Functions

Name Summary
onBind open fun onBind(intent: <ERROR CLASS>?): <ERROR CLASS>?
onCreate open fun onCreate(): Unit
onDestroy open fun onDestroy(): Unit

Companion Object Functions

Name Summary
dismissNotification fun dismissNotification(context: <ERROR CLASS>): Unit
Dismisses the “migration completed” notification.

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.