bbads_banner_set_size()

Modify the banner's size.

Synopsis:

#include <bbads/bbads.h>
 
bbads_error_t bbads_banner_set_size(bbads_banner_t *banner, unsigned int width, unsigned int height)

Since:

BlackBerry 10.0.0

Arguments:

banner

The bbads_banner_t* as created in the call to bbads_banner_create().

width

The requested width of the banner. Must be greater than 0.

height

The requested height of the banner. Must be greater than 0.

Library:

libbbads

Description:

This function modifies the banner's size. Modifying the banner's size can only be performed before the banner has been loaded.

Returns:

  • BBADS_EOK on success.
  • BBADS_EBANNER if the bbads_banner_t* provided is invalid.
  • BBADS_ESIZE if the size provided is invalid.
  • BBADS_ESTATE if the banner has already been loaded.