dialog_set_progress_toast_level()

Set the progress level of a progress toast dialog.

Synopsis:

#include <bps/dialog.h>
 
BPS_API int dialog_set_progress_toast_level(dialog_instance_t dialog,
                                            int progress)

Since:

BlackBerry 10.0.0

Arguments:

dialog

The dialog to update.

progress

The progress level. A value representing the current level of progress from 0 to 100. To show an activity spinner indicating indefinite progress, specify -1.

Library:

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

Description:

The dialog_set_progress_toast_level() function sets the progress level of the specified progress toast dialog.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.