Add documentation for ReadyChannelTabLLH
This commit is contained in:
parent
12ca6a22cf
commit
294ffab490
|
@ -5,6 +5,21 @@ import org.schabi.newpipe.extractor.channel.ChannelTabExtractor;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Can be used as a {@link ListLinkHandler} to be returned from {@link
|
||||||
|
* org.schabi.newpipe.extractor.channel.ChannelInfo#getTabs()} when a specific tab's data has
|
||||||
|
* already been fetched. This class allows passing a builder for a {@link ChannelTabExtractor} that
|
||||||
|
* can hold references to variables.
|
||||||
|
*
|
||||||
|
* Note: a service that wishes to use this class in one of its {@link
|
||||||
|
* org.schabi.newpipe.extractor.channel.ChannelExtractor}s must also add the following snippet of
|
||||||
|
* code in the service's {@link StreamingService#getChannelTabExtractor(ListLinkHandler)}:
|
||||||
|
* <pre>
|
||||||
|
* if (linkHandler instanceof ReadyChannelTabListLinkHandler) {
|
||||||
|
* return ((ReadyChannelTabListLinkHandler) linkHandler).getChannelTabExtractor(this);
|
||||||
|
* }
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
public class ReadyChannelTabListLinkHandler extends ListLinkHandler {
|
public class ReadyChannelTabListLinkHandler extends ListLinkHandler {
|
||||||
|
|
||||||
public interface ChannelTabExtractorBuilder {
|
public interface ChannelTabExtractorBuilder {
|
||||||
|
|
Loading…
Reference in New Issue