Permalink
Browse files

Update HeadlessJSAndroid.md explaining parameters

Summary:
HeadlessJsTaskConfig parameters can be unclear, so I added one more parameter that was left set by default and the respective comments.
Closes #16054

Differential Revision: D5881373

Pulled By: hramos

fbshipit-source-id: 3d271f73921417d82e3a2c7a1aaabe92aef7ec69
  • Loading branch information...
flaviolivolsi authored and facebook-github-bot committed Sep 21, 2017
1 parent 1aeb767 commit f25233b15f8b721f33e4100b8b60c05fc29bb178
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/HeadlessJSAndroid.md
@@ -43,7 +43,9 @@ public class MyTaskService extends HeadlessJsTaskService {
return new HeadlessJsTaskConfig(
"SomeTaskName",
Arguments.fromBundle(extras),
5000);
5000, // timeout for the task
false // optional: defines whether or not the task is allowed in foreground. Default is false
);
}
return null;
}

0 comments on commit f25233b

Please sign in to comment.