BGTaskScheduler.Register(String, DispatchQueue, Action<BGTask>) Method

Definition

[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
launchHandler
Action<BGTask>

Returns

Attributes

Applies to