WKInterfaceController.PresentTextInputController 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.
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
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.
- 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
- inputMode
- WKTextInputMode
A value that controls whether and what kind of emoji may be input.
- Attributes
Remarks
(More documentation for this node is coming)
This can be used from a background thread.