3.0.0-alpha.1 #451
mickael-menu
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Resources
Changelog
Added
Shared
Formattype was introduced to augmentMediaTypewith more precise information about the format specifications of anAsset.DownloadManagerinterface handles HTTP downloads. Components like theLcpServicerely on it for downloading publications. Readium v3 ships with two implementations:ForegroundDownloadManageruses anHttpClientto download files while the app is running.AndroidDownloadManageris built upon Android'sDownloadManagerto manage HTTP downloads, even when the application is closed. It allows for resuming downloads after losing connection.ZipArchiveOpenernow supports streaming ZIP archives, which enables opening a packaged publication (e.g. EPUB or LCP protected audiobook):ContentProvider, such as the shared storage.Navigator
VisualNavigator.addInputListener().LCP
Changed
readium_. This means that you must rename any layouts or strings you have overridden. Some resources were removed from the toolkit. Please consult the migration guide.Errorinstance instead of anExceptionin case of failure, as these objects are not thrown by the toolkit but returned as valuesShared
LocatorandLink'shref. You must migrate the HREFs or Locators stored in your database, please consult the migration guide.Link.hrefandLocator.hrefare now respectivelyHrefandUrlobjects. If you still need the string value, you can calltoString()MediaTypeno longer has static helpers for sniffing it from a file or URL. Instead, you can use anAssetRetrieverto retrieve the format of a file.Navigator
DirectionalNavigationAdapterthat replacesEdgeTapNavigation. This helper enables users to navigate between pages using arrow and space keys on their keyboard or by tapping the edge of the screen.onTapandonDragevents ofVisualNavigator.Listenerhave been deprecated. You can now use multiple implementations ofInputListenerwithVisualNavigator.addInputListener().Streamer
Streamerobject has been deprecated in favor of components with smaller responsibilities:AssetRetrieverandPublicationOpener.LCP
LcpService.acquirePublication()is deprecated in favor ofLcpService.publicationRetriever(), which provides greater flexibility thanks to theDownloadManager.LcpDialogAuthenticationis retrieved was changed to support Android configuration changes.Deprecated
Shared
putPublicationandgetPublicationhelpers inIntentare deprecated. Now, it is the application's responsibility to passPublicationobjects between activities and reopen them when necessary.Navigator
This discussion was created from the release 3.0.0-alpha.1.
Beta Was this translation helpful? Give feedback.
All reactions