menu_sub_item_has_children()

Determine if the sub-menu item object has another level of menu items.

Synopsis:

#include "bps/menu.h"
 
BPS_API bool menu_sub_item_has_children(menu_sub_item_t *item)

Since:

BlackBerry 10.0.0

Arguments:

item

The sub-menu item.

Library:

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

Description:

The menu_sub_item_has_children() function determines if the sub-menu item object has another level of sub-menus. If there are no children, call menu_sub_item_get_invocation() to retrieve the invocation object. If there are children, call menu_sub_item_get_item() to retrieve another level of menu items.

Returns:

True if the sub-menu item has another level of menu items, false otherwise.