File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
website/versioned_docs/version-0.70 Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public class MyTaskService extends HeadlessJsTaskService {
5656 " SomeTaskName" ,
5757 Arguments . fromBundle(extras),
5858 5000 , // timeout for the task
59- false // optional: defines whether or not the task is allowed in foreground. Default is false
59+ false // optional: defines whether or not the task is allowed in foreground. Default is false
6060 );
6161 }
6262 return null ;
@@ -79,10 +79,10 @@ class MyTaskService : HeadlessJsTaskService() {
7979 override fun getTaskConfig (intent : Intent ): HeadlessJsTaskConfig ? {
8080 return intent.extras?.let {
8181 HeadlessJsTaskConfig (
82- " SomeT askName " ,
82+ " SomeTaskName " ,
8383 Arguments .fromBundle(it),
8484 5000 , // timeout for the task
85- false // optional: defines whether or not the task is allowed in foreground.
85+ false // optional: defines whether or not the task is allowed in foreground.
8686 // Default is false
8787 )
8888 }
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public class MyTaskService extends HeadlessJsTaskService {
5656 " SomeTaskName" ,
5757 Arguments . fromBundle(extras),
5858 5000 , // timeout for the task
59- false // optional: defines whether or not the task is allowed in foreground. Default is false
59+ false // optional: defines whether or not the task is allowed in foreground. Default is false
6060 );
6161 }
6262 return null ;
@@ -79,10 +79,10 @@ class MyTaskService : HeadlessJsTaskService() {
7979 override fun getTaskConfig (intent : Intent ): HeadlessJsTaskConfig ? {
8080 return intent.extras?.let {
8181 HeadlessJsTaskConfig (
82- " SomeT askName " ,
82+ " SomeTaskName " ,
8383 Arguments .fromBundle(it),
8484 5000 , // timeout for the task
85- false // optional: defines whether or not the task is allowed in foreground.
85+ false // optional: defines whether or not the task is allowed in foreground.
8686 // Default is false
8787 )
8888 }
You can’t perform that action at this time.
0 commit comments