screencapture_result_get_filename()

Get the filename of the saved screenshot.

Synopsis:

#include <bps/screencapture.h>
 
BPS_API const char* screencapture_result_get_filename(screencapture_result_t *result)

Since:

BlackBerry 10.2.0

Arguments:

result

The result handle created by screencapture_grab().

Library:

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

Description:

Get the filename of the saved screenshot. This is particularly useful if no filename was specified in the call to screencapture_grab(). In that case, a file name was automatically generated, and can be retrieved here.

Returns:

If screencapture_grab() returned success, this function returns the filename of the stored screenshot. If screencapture_grab() failed, this function will return NULL.