Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileDownloader.startForeground() equivalent function #19

Closed
btalukdar511 opened this issue Apr 8, 2018 · 1 comment
Closed

FileDownloader.startForeground() equivalent function #19

btalukdar511 opened this issue Apr 8, 2018 · 1 comment

Comments

@btalukdar511
Copy link

What is the equivalent function for FileDownloader.startForeground() function, i could not find any method equivalent to it in javadoc.

Moreover a lot of people are using FileDownloader, it will be a very good step to maintain a porting guide with equivalent functions.

@Jacksgong
Copy link
Collaborator

Jacksgong commented Apr 8, 2018

Actually, for more simpleness, okdownload core library doesn't run on the service, it's just an okdownload singleton (what is like OkHttpClient or Picasso provided), so there isn't startForeground now.

Then, if you want okdownload running in the service now because you want to get the benefit from foreground service, you just feel free to create a service and download resource with okdownload on it.

On More Thing

On the further version, we will implement a special DownloadDispatcher to implement okdownload running on the independent process, then you can enable it like okdownload:sqlite or okdownload:okhttp which has been said on here, and on that moment, I think we will provide such startForeground method again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants