Package org.schabi.newpipe.extractor
Class NewPipe
- java.lang.Object
-
- org.schabi.newpipe.extractor.NewPipe
-
public final class NewPipe extends java.lang.Object
Provides access to streaming services supported by NewPipe.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Downloader
getDownloader()
static ContentCountry
getPreferredContentCountry()
static Localization
getPreferredLocalization()
static StreamingService
getService(int serviceId)
static StreamingService
getService(java.lang.String serviceName)
static StreamingService
getServiceByUrl(java.lang.String url)
static java.util.List<StreamingService>
getServices()
static void
init(Downloader d)
static void
init(Downloader d, Localization l)
static void
init(Downloader d, Localization l, ContentCountry c)
static void
setPreferredContentCountry(ContentCountry preferredContentCountry)
static void
setPreferredLocalization(Localization preferredLocalization)
static void
setupLocalization(Localization thePreferredLocalization)
static void
setupLocalization(Localization thePreferredLocalization, ContentCountry thePreferredContentCountry)
-
-
-
Method Detail
-
init
public static void init(Downloader d)
-
init
public static void init(Downloader d, Localization l)
-
init
public static void init(Downloader d, Localization l, ContentCountry c)
-
getDownloader
public static Downloader getDownloader()
-
getServices
public static java.util.List<StreamingService> getServices()
-
getService
public static StreamingService getService(int serviceId) throws ExtractionException
- Throws:
ExtractionException
-
getService
public static StreamingService getService(java.lang.String serviceName) throws ExtractionException
- Throws:
ExtractionException
-
getServiceByUrl
public static StreamingService getServiceByUrl(java.lang.String url) throws ExtractionException
- Throws:
ExtractionException
-
setupLocalization
public static void setupLocalization(Localization thePreferredLocalization)
-
setupLocalization
public static void setupLocalization(Localization thePreferredLocalization, @Nullable ContentCountry thePreferredContentCountry)
-
getPreferredLocalization
@Nonnull public static Localization getPreferredLocalization()
-
setPreferredLocalization
public static void setPreferredLocalization(Localization preferredLocalization)
-
getPreferredContentCountry
@Nonnull public static ContentCountry getPreferredContentCountry()
-
setPreferredContentCountry
public static void setPreferredContentCountry(ContentCountry preferredContentCountry)
-
-