set_content_type


Description:

public void set_content_type (uint purpose, uint hints)

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

Parameters:

this

An InputContext.

purpose

Primary purpose of the input context, as an InputPurpose.

hints

Hints that augment purpose, as an InputHints.




2022 vala-language.org