dialog_set_prompt_maximum_characters()

Set the maximum number of characters of the input field of a prompt dialog.

Synopsis:

#include <bps/dialog.h>
 
BPS_API int dialog_set_prompt_maximum_characters(dialog_instance_t dialog,
                                                 int max_chars)

Since:

BlackBerry 10.0.0

Arguments:

dialog

The dialog to update.

max_chars

The maximum number of characters.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The dialog_set_prompt_maximum_characters() function sets the maximum number of characters that can be entered in the input field of a prompt dialog.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.