Set content-type (primary purpose and hints) of the context.
This information is particularly useful to implement intelligent behavior in engines, such as automatic input-mode switch and text
prediction. For example, to restrict input to numbers, the client can call this function with purpose
set to
NUMBER.
See also: set_content_type
this |
An InputContext. |
purpose |
Primary purpose of the input context, as an InputPurpose. |
hints |
Hints that augment |