Sdílet prostřednictvím


UIDocumentMenuViewController.AddOptionAsync Method

Definition

Asynchronously adds a menu item to the document menue.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task AddOptionAsync(string title, UIKit.UIImage? image, UIKit.UIDocumentMenuOrder order);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddOptionAsync : string * UIKit.UIImage * UIKit.UIDocumentMenuOrder -> System.Threading.Tasks.Task
override this.AddOptionAsync : string * UIKit.UIImage * UIKit.UIDocumentMenuOrder -> System.Threading.Tasks.Task

Parameters

title
String
image
UIImage

Returns

A task that represents the asynchronous AddOption operation

Attributes

Remarks

The AddOptionAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to