Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open
a-k-o-r-e-d-e wants to merge 1 commit intotransistorsoft:mastertransistorsoft/flutter_background_fetch:masterfrom
a-k-o-r-e-d-e:headless_task_function_type_specificationa-k-o-r-e-d-e/flutter_background_fetch:headless_task_function_type_specificationCopy head branch name to clipboard
Open

Function Type Specification for Headless Tasks, onFetch and onTimeout#228
a-k-o-r-e-d-e wants to merge 1 commit intotransistorsoft:mastertransistorsoft/flutter_background_fetch:masterfrom
a-k-o-r-e-d-e:headless_task_function_type_specificationa-k-o-r-e-d-e/flutter_background_fetch:headless_task_function_type_specificationCopy head branch name to clipboard

Conversation

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

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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.