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

AbstractMigrationProgressActivity

abstract class AbstractMigrationProgressActivity : AppCompatActivity, MigrationStateListener (source)

An activity that notifies on migration progress. Should be used in tandem with MigrationIntentProcessor.

Implementation notes: this abstraction exists to ensure that migration apps do not allow the user to invoke AppCompatActivity.onBackPressed.

Constructors

Name Summary
<init> AbstractMigrationProgressActivity()
An activity that notifies on migration progress. Should be used in tandem with MigrationIntentProcessor.

Properties

Name Summary
store abstract val store: MigrationStore

Functions

Name Summary
onBackPressed fun onBackPressed(): Unit
onStart open fun onStart(): Unit
onStop open fun onStop(): Unit

Inherited Functions

Name Summary
onMigrationCompleted abstract fun onMigrationCompleted(results: MigrationResults): Unit
Invoked when the migration is complete.
onMigrationStateChanged abstract fun onMigrationStateChanged(progress: MigrationProgress, results: MigrationResults): Unit
Invoked on a migration state change.

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.