INNER CODE UNIT · Java

notifyChannelNewVideos

SkyTubeTeam/SkyTube · app/src/main/java/free/rm/skytube/app/EventBus.java:61

    public void notifyChannelNewVideos(ChannelId channelId, int newVideos) {
        if (newVideos > 0) {
            this.mainFragments.forEach(main -> main.notifyChangeChannelNewVideosStatus(channelId, true));
        }
    }

    public void notifyVideoDetailFetched(YouTubeVideo video) {
        this.videoDetailListeners.forEach(listener -> listener.accept(video));
    }

    public void registerVideoDetailFetcher(Consumer<YouTubeVideo> videoListener) {
        this.videoDetailListeners.add(videoListener);
    }

    public void notifyChannelRemoved(ChannelId channelId) {
        this.mainFragments.forEach(main -> main.notifyChannelRemoved(channelId));
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…