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

Function Type Specification for Headless Tasks, onFetch and onTimeout #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

a-k-o-r-e-d-e
Copy link

Hello,

W.r.t to issue #227 . Here is a PR that implements the suggested changes.

** Improved the function type specification of BackgroundFetch.regist…erHeadlessTask from "BackgroundFetch.registerHeadlessTask(Function callback)" to "BackgroundFetch.registerHeadlessTask(Function(HeadlessTask) callback)"

** also improved the BackgroundFetch.configure parameter "onFetch" Function declaration from "Function onFetch" to "Function(String taskId) onFetch". A similar thing was done for the "onTimeout" parameter

…erHeadlessTask from "BackgroundFetch.registerHeadlessTask(Function callback)" to "BackgroundFetch.registerHeadlessTask(Function(HeadlessTask) callback)"

** also improved the BackgroundFetch.configure parameter "onFetch" Function declaration from "Function onFetch" to "Function(String taskId) onFetch". A similar thing was done for the "onTimeout" parameter
@christocracy
Copy link
Member

Looks good, thanks. I try it out next week and release.

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

Successfully merging this pull request may close these issues.

2 participants