Moai SDK  1.5 revision 1 (MoaiEdition)
MOAITapjoyIOS Class Reference

Inherits MOAIGlobalClass< TYPE, SUPER >.

List of all members.

Function List

  getUserId
  initVideoAds
  init
  setUserId
  showOffers

Function Documentation

Gets the tapjoy user ID.


function getUserId ()
Returns:
userId ( string )

Initializes Tapjoy.


function init ( string appId, string secretKey )
Parameters:
appId ( string ) Available in Tapjoy dashboard settings.
secretKey ( string ) Available in Tapjoy dashboard settings.
Returns:
nil

Initializes Tapjoy to display video ads.


function initVideoAds ( [ number count ] )
Parameters:
count ( number ) Optional. The optional number of ads to cache. Default is Tapjoy dependent.
Returns:
nil

Sets the tapjoy user ID.


function setUserId ( string userId )
Parameters:
userId ( string )
Returns:
nil

Displays the Tapjoy marketplace.


function showOffers ()
Returns:
nil