1 package android.app.ondeviceintelligence; 2 3 import android.os.PersistableBundle; 4 import android.os.RemoteCallback; 5 import android.os.Bundle; 6 7 8 /** 9 * This callback is a streaming variant of {@link IResponseCallback}. 10 * 11 * @hide 12 */ 13 oneway interface IStreamingResponseCallback { 14 void onNewContent(in Bundle processedResult) = 1; 15 void onSuccess(in Bundle result) = 2; onFailure(int errorCode, in String errorMessage, in PersistableBundle errorParams)16 void onFailure(int errorCode, in String errorMessage, in PersistableBundle errorParams) = 3; onDataAugmentRequest(in Bundle processedContent, in RemoteCallback responseCallback)17 void onDataAugmentRequest(in Bundle processedContent, in RemoteCallback responseCallback) = 4; 18 } 19