BGTaskScheduler.Register(String, DispatchQueue, Action<BGTask>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Foundation.Advice("This API is not available when using iOS App Extensions.")]
[Foundation.Export("registerForTaskWithIdentifier:usingQueue:launchHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Register(string identifier, CoreFoundation.DispatchQueue? queue, Action<BackgroundTasks.BGTask> launchHandler);
[<Foundation.Advice("This API is not available when using iOS App Extensions.")>]
[<Foundation.Export("registerForTaskWithIdentifier:usingQueue:launchHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Register : string * CoreFoundation.DispatchQueue * Action<BackgroundTasks.BGTask> -> bool
override this.Register : string * CoreFoundation.DispatchQueue * Action<BackgroundTasks.BGTask> -> bool
Parameters
- identifier
- String
- queue
- DispatchQueue
Returns
- Attributes