Bearbeiten

Freigeben über


WKInterfaceController.PresentTextInputControllerAsync Method

Definition

Overloads

PresentTextInputControllerAsync(Func<NSString,NSArray>, WKTextInputMode)

Presents a modal text input interface to the user, and runs a handler when the operation completes.

PresentTextInputControllerAsync(String[], WKTextInputMode)

Presents a modal text input interface to the user, and runs a handler when the operation completes.

PresentTextInputControllerAsync(Func<NSString,NSArray>, WKTextInputMode)

Presents a modal text input interface to the user, and runs a handler when the operation completes.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Foundation.NSArray> PresentTextInputControllerAsync (Func<Foundation.NSString,Foundation.NSArray> suggestionsHandler, WatchKit.WKTextInputMode inputMode);
abstract member PresentTextInputControllerAsync : Func<Foundation.NSString, Foundation.NSArray> * WatchKit.WKTextInputMode -> System.Threading.Tasks.Task<Foundation.NSArray>
override this.PresentTextInputControllerAsync : Func<Foundation.NSString, Foundation.NSArray> * WatchKit.WKTextInputMode -> System.Threading.Tasks.Task<Foundation.NSArray>

Parameters

suggestionsHandler
Func<NSString,NSArray>

A handler that returns suggestion strings for specific locales.This parameter can be .

inputMode
WKTextInputMode

A value that controls whether and what kind of emoji may be input.

Returns

A task that represents the asynchronous PresentTextInputController operation. The value of the TResult parameter is of type System.Action<Foundation.NSArray>.

Attributes

Remarks

The PresentTextInputControllerAsync 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

PresentTextInputControllerAsync(String[], WKTextInputMode)

Presents a modal text input interface to the user, and runs a handler when the operation completes.

[ObjCRuntime.ThreadSafe(false)]
public virtual System.Threading.Tasks.Task<Foundation.NSArray> PresentTextInputControllerAsync (string[] suggestions, WatchKit.WKTextInputMode inputMode);
abstract member PresentTextInputControllerAsync : string[] * WatchKit.WKTextInputMode -> System.Threading.Tasks.Task<Foundation.NSArray>
override this.PresentTextInputControllerAsync : string[] * WatchKit.WKTextInputMode -> System.Threading.Tasks.Task<Foundation.NSArray>

Parameters

suggestions
String[]

An array of suggested text strings.This parameter can be .

inputMode
WKTextInputMode

A value that controls whether and what kind of emoji may be input.

Returns

A task that represents the asynchronous PresentTextInputController operation. The value of the TResult parameter is of type System.Action<Foundation.NSArray>.

Attributes

Applies to