android-components / / MigrationStateListener


interface MigrationStateListener (source)

Interface to be implemented by classes that want to observe the migration state changes.


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.


Name Summary
AbstractMigrationProgressActivity abstract class AbstractMigrationProgressActivity : AppCompatActivity, MigrationStateListener
An activity that notifies on migration progress. Should be used in tandem with MigrationIntentProcessor.