Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Create feature-downloads component #459

@pocmo

Description

@pocmo

#424 landed the code to expose downloads in engine and session.

For all our apps that want to use Android's download manager for downloads the code will be very similar and we can wrap that in a feature component.

The component will roughly do:

  • Subscribe to downloads in the currently selected session (I assume we do not need to subscribe to it in all Sessions?)
  • Consume Download objects and pass the data to Androids Download Manager
  • Show an optional, customizable UI piece before starting the download (e.g. Download dialog)
  • Call back into the app to notify if a download is done (to show some UI)
  • Call back into the app to request the Storage permission if needed
  • Provide a callback to be called by the app once a permission has been granted (and then it will trigger the download)

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

Labels

🌟 featureNew functionality and improvements🎭 FocusRequirements for Focus/Klar

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions