Skip to content

Commit

Permalink
Merge pull request #1 from mjh316/patch-2
Browse files Browse the repository at this point in the history
Update headless-js-android.md
  • Loading branch information
mjh316 authored Oct 19, 2022
2 parents 30707f5 + 1b522a8 commit 0276279
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.70/headless-js-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class MyTaskService extends HeadlessJsTaskService {
"SomeTaskName",
Arguments.fromBundle(extras),
5000, // timeout for the task
false // optional: defines whether or not the task is allowed in foreground. Default is false
false // optional: defines whether or not the task is allowed in foreground. Default is false
);
}
return null;
Expand All @@ -79,10 +79,10 @@ class MyTaskService : HeadlessJsTaskService() {
override fun getTaskConfig(intent: Intent): HeadlessJsTaskConfig? {
return intent.extras?.let {
HeadlessJsTaskConfig(
"SomeT askName",
"SomeTaskName",
Arguments.fromBundle(it),
5000, // timeout for the task
false // optional: defines whether or not the task is allowed in foreground.
false // optional: defines whether or not the task is allowed in foreground.
// Default is false
)
}
Expand Down

0 comments on commit 0276279

Please sign in to comment.