package org.schabi.newpipe.history; import org.schabi.newpipe.extractor.stream.AudioStream; import org.schabi.newpipe.extractor.stream.StreamInfo; import org.schabi.newpipe.extractor.stream.VideoStream; public interface HistoryListener { /** * Called when a video is played * * @param streamInfo the stream info * @param videoStream the video stream that is played */ void onVideoPlayed(StreamInfo streamInfo, VideoStream videoStream); /** * Called when the audio is played in the background * * @param streamInfo the stream info * @param audioStream the audio stream that is played */ void onAudioPlayed(StreamInfo streamInfo, AudioStream audioStream); /** * Called when the user searched for something * * @param serviceId which service the search was done * @param query what the user searched for */ void onSearch(int serviceId, String query); }