1 package android.health.connect.aidl; 2 3 import android.health.connect.migration.MigrationException; 4 5 /** 6 * A callback for any error encountered by {@link HealthConnectManager#writeMigrationData}. 7 * @hide 8 */ 9 interface IMigrationCallback { 10 11 // Called when the batch is successfully saved onSuccess()12 oneway void onSuccess(); 13 14 // Called when an error is hit during the migration process onError(in MigrationException exception)15 oneway void onError(in MigrationException exception); 16 } 17