MoSync 3.3
Ads::Banner Class Reference

Provides a widget that displays advertisement to the user. When the user taps a banner, it triggers an action programmed into the advertisement. Your application is notified when an action starts or stops. The banner works with NativeUI library. The banner can be added only to a NativeUI layout object. More...

#include <Ads/Banner.h>

List of all members.

Public Member Functions

 Banner (MAUtil::String publisherID="", BannerSize bannerSize=BANNER_SIZE_DEFAULT)
virtual ~Banner ()
virtual MAHandle getHandle () const
virtual int getWidth ()
virtual int getHeight ()
virtual void setVisible (const bool visible)
virtual bool isVisible ()
virtual void setEnabled (bool enable)
virtual bool isEnabled ()
virtual void requestContent (bool requestState)
virtual void addTestDevice (const MAUtil::String &testDevice)
virtual bool isReady ()
virtual int setBackgroundColor (const int color)
virtual int setTopBackgroundColor (const int color)
virtual int setBorderColor (const int color)
virtual int setLinkColor (const int color)
virtual int setTextColor (const int color)
virtual int setUrlColor (const int color)
virtual void addBannerListener (BannerListener *listener)
virtual void removeBannerListener (BannerListener *listener)
virtual void handleBannerEvent (const MAEvent &eventData)

Protected Member Functions

virtual int setProperty (const MAUtil::String &property, const MAUtil::String &value)
virtual int setPropertyInt (const MAUtil::String &property, const int value)
virtual int setPropertyIntHexa (const MAUtil::String &property, const int value)
virtual int getPropertyInt (const MAUtil::String &property, int &resultCode)
virtual int getPropertyInt (const MAUtil::String &property)
virtual MAUtil::String getPropertyString (const MAUtil::String &property, int &resultCode)
virtual MAUtil::String getPropertyString (const MAUtil::String &property)

Detailed Description

Provides a widget that displays advertisement to the user. When the user taps a banner, it triggers an action programmed into the advertisement. Your application is notified when an action starts or stops. The banner works with NativeUI library. The banner can be added only to a NativeUI layout object.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines