Skip to content

Commit

Permalink
Update HeadlessJSAndroid.md explaining parameters
Browse files Browse the repository at this point in the history
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
Flavio Li Volsi authored and facebook-github-bot committed Sep 21, 2017
1 parent 1aeb767 commit f25233b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/HeadlessJSAndroid.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f25233b

Please sign in to comment.