Specify whether the application is required to cancel a dialog explicitly.
#include <bps/dialog.h>
BPS_API int dialog_set_cancel_required(dialog_instance_t dialog,
bool cancel_required)
BlackBerry 10.0.0
The dialog to update.
If true, the application must cancel the dialog explicitly; if false, the application doesn't cancel the dialog explicitly.
The dialog_set_cancel_required() function specifies whether the application is required to cancel the dialog or not when the user presses a button. By default, the application is not required to explicitly cancel the dialog but it is no longer displayed once the user presses one of the dialog's buttons. If cancel_required is set to true, then the dialog continues to be displayed, even after one of its buttons has been pressed, until the application calls dialog_cancel() on the dialog.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.