Düzenle

Aracılığıyla paylaş


WKInterfaceController.PresentTextInputController Method

Definition

Overloads

PresentTextInputController(Func<NSString,NSArray>, WKTextInputMode, Action<NSArray>)

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

PresentTextInputController(String[], WKTextInputMode, Action<NSArray>)

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

PresentTextInputController(Func<NSString,NSArray>, WKTextInputMode, Action<NSArray>)

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

[Foundation.Export("presentTextInputControllerWithSuggestionsForLanguage:allowedInputMode:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PresentTextInputController (Func<Foundation.NSString,Foundation.NSArray> suggestionsHandler, WatchKit.WKTextInputMode inputMode, Action<Foundation.NSArray> completion);
abstract member PresentTextInputController : Func<Foundation.NSString, Foundation.NSArray> * WatchKit.WKTextInputMode * Action<Foundation.NSArray> -> unit
override this.PresentTextInputController : Func<Foundation.NSString, Foundation.NSArray> * WatchKit.WKTextInputMode * Action<Foundation.NSArray> -> unit

Parameters

suggestionsHandler
Func<NSString,NSArray>

A handler that returns suggestion strings for specific locales.

This parameter can be null.

inputMode
WKTextInputMode

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

completion
Action<NSArray>

A handler to run after the controller is dismissed.

Attributes

Applies to

PresentTextInputController(String[], WKTextInputMode, Action<NSArray>)

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

[Foundation.Export("presentTextInputControllerWithSuggestions:allowedInputMode:completion:")]
[ObjCRuntime.ThreadSafe(false)]
public virtual void PresentTextInputController (string[] suggestions, WatchKit.WKTextInputMode inputMode, Action<Foundation.NSArray> completion);
abstract member PresentTextInputController : string[] * WatchKit.WKTextInputMode * Action<Foundation.NSArray> -> unit
override this.PresentTextInputController : string[] * WatchKit.WKTextInputMode * Action<Foundation.NSArray> -> unit

Parameters

suggestions
String[]

An array of suggested text strings.

This parameter can be null.

inputMode
WKTextInputMode

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

completion
Action<NSArray>

A handler to run after the controller is dismissed.

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to