aboutsummaryrefslogtreecommitdiff
path: root/tuner/src/com/android/tv/tuner/tvinput/factory/TunerSessionFactory.java
blob: a27cb22a4df34a370c76d00fb81de1805382aa0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.android.tv.tuner.tvinput.factory;

import android.content.Context;
import android.media.tv.TvInputService.Session;
import com.android.tv.tuner.tvinput.datamanager.ChannelDataManager;

/** {@link android.media.tv.TvInputService.Session} factory */
public interface TunerSessionFactory {

    /** Called when a session is released */
    interface SessionReleasedCallback {

        /**
         * Called when the given session is released.
         *
         * @param session The session that has been released.
         */
        void onReleased(Session session);
    }

    Session create(
            Context context,
            ChannelDataManager channelDataManager,
            SessionReleasedCallback releasedCallback);
}