1 package android.media.musicrecognition; 2 3 import android.os.Bundle; 4 import android.media.MediaMetadata; 5 6 /** 7 * Callback used by system server to notify invoker of {@link MusicRecognitionManager} of the result 8 * 9 * @hide 10 */ 11 oneway interface IMusicRecognitionManagerCallback { onRecognitionSucceeded(in MediaMetadata result, in Bundle extras)12 void onRecognitionSucceeded(in MediaMetadata result, in Bundle extras); onRecognitionFailed(int failureCode)13 void onRecognitionFailed(int failureCode); onAudioStreamClosed()14 void onAudioStreamClosed(); 15 }