Class ReadyChannelTabListLinkHandler
- java.lang.Object
-
- org.schabi.newpipe.extractor.linkhandler.LinkHandler
-
- org.schabi.newpipe.extractor.linkhandler.ListLinkHandler
-
- org.schabi.newpipe.extractor.linkhandler.ReadyChannelTabListLinkHandler
-
- All Implemented Interfaces:
java.io.Serializable
public class ReadyChannelTabListLinkHandler extends ListLinkHandler
AListLinkHandler
which can be used to be returned fromChannelInfo#getTabs()
when a specific tab's data has already been fetched.This class allows passing a builder for a
ChannelTabExtractor
that can hold references to variables.Note: a service that wishes to use this class in one of its
ChannelExtractor
s must also add the following snippet of code in the service'sStreamingService.getChannelTabExtractor(ListLinkHandler)
:if (linkHandler instanceof ReadyChannelTabListLinkHandler) { return ((ReadyChannelTabListLinkHandler) linkHandler).getChannelTabExtractor(this); }
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReadyChannelTabListLinkHandler.ChannelTabExtractorBuilder
-
Field Summary
-
Fields inherited from class org.schabi.newpipe.extractor.linkhandler.ListLinkHandler
contentFilters, sortFilter
-
Fields inherited from class org.schabi.newpipe.extractor.linkhandler.LinkHandler
id, originalUrl, url
-
-
Constructor Summary
Constructors Constructor Description ReadyChannelTabListLinkHandler(java.lang.String url, java.lang.String channelId, java.lang.String channelTab, ReadyChannelTabListLinkHandler.ChannelTabExtractorBuilder extractorBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelTabExtractor
getChannelTabExtractor(StreamingService service)
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.ListLinkHandler
getContentFilters, getSortFilter
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.LinkHandler
getBaseUrl, getId, getOriginalUrl, getUrl
-
-
-
-
Constructor Detail
-
ReadyChannelTabListLinkHandler
public ReadyChannelTabListLinkHandler(java.lang.String url, java.lang.String channelId, @Nonnull java.lang.String channelTab, @Nonnull ReadyChannelTabListLinkHandler.ChannelTabExtractorBuilder extractorBuilder)
-
-
Method Detail
-
getChannelTabExtractor
@Nonnull public ChannelTabExtractor getChannelTabExtractor(@Nonnull StreamingService service)
-
-