Tapjoy class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
addUserTag (String tag )
→ Future <void >
Adds the given tag to the user if it is not already present.
awardCurrency ({required int amount , TapjoyOnAwardCurrencySuccessListener ? onAwardCurrencySuccess , TapjoyOnAwardCurrencyFailureListener ? onAwardCurrencyFailure })
→ Future <void >
Awards currency amount
, onAwardCurrencySuccess
callback will be called on successfull call. onAwardCurrencyFailure
callback will be called otherwise.
clearUserTags ()
→ Future <void >
Removes all tags from the user.
connect ({required String sdkKey , Map <String , dynamic > ? options , TapjoyOnConnectSuccessListener ? onConnectSuccess , TapjoyOnConnectFailureListener ? onConnectFailure , TapjoyOnConnectWarningListener ? onConnectWarning })
→ Future <void >
Initializes the Tapjoy SDK with sdkKey
and options
. onConnectSuccess
callback will be called on successful connect call. onConnectFailure
callback will be called otherwise.
getCurrencyBalance ({TapjoyOnGetCurrencyBalanceSuccessListener ? onGetCurrencyBalanceSuccess , TapjoyOnGetCurrencyBalanceFailureListener ? onGetCurrencyBalanceFailure })
→ Future <void >
Gets currency balance, onGetCurrencyBalanceSuccess
callback will be called on successfull call. onGetCurrencyBalanceFailure
callback will be called otherwise.
getCustomParameter ()
→ Future <String ? >
Gets the custom parameter
getLoggingLevel ()
→ Future <TJLoggingLevel >
Gets the current logging level.
getMaxLevel ()
→ Future <int ? >
Gets the maximum level of the user.
getOptOutAdvertisingID ()
→ Future <bool ? >
Returns the currently set opt out advertising id value
getPlacement ({required String placementName , TJPlacementOnRequestSuccessListener ? onRequestSuccess , TJPlacementOnRequestFailureListener ? onRequestFailure , TJPlacementOnContentReadyListener ? onContentReady , TJPlacementOnContentShowListener ? onContentShow , TJPlacementOnContentDismissListener ? onContentDismiss })
→ Future <TJPlacement ? >
Returns the TJPrivacyPolicy instance for calling methods to set GDPR, User's consent, below consent age ,and US Privacy policy flags.
getPluginVersion ()
→ String
getPrivacyPolicy ()
→ TJPrivacyPolicy
Returns the TJPrivacyPolicy instance for calling methods to set GDPR, User's consent, below consent age ,and US Privacy policy flags.
getUserID ()
→ Future <String ? >
Gets the user id
getUserLevel ()
→ Future <int ? >
Gets the level of the user.
getUserSegment ()
→ Future <TJSegment ? >
Gets the segment of the user.
getUserTags ()
→ Future <Set <String > >
Gets the segment of the user.
isConnected ()
→ Future <bool >
Helper function to check if SDK is initialized.
listen ({required EventListener onEvent , required dynamic onError (Object error ) })
→ StreamSubscription <Map <String , dynamic > >
Returns the Listeners for OfferwallDiscover.
optOutAdvertisingID (bool optOut )
→ Future <void >
This is to opt out passing advertising_id param in the subsequent network requests
removeUserTag (String tag )
→ Future <void >
Removes the given tag from the user if it is present.
setCustomParameter (String ? parameter )
→ Future <void >
Set custom parameter with parameter
setDebugEnabled (bool debugEnabled )
→ Future <void >
Enable/disable Tapjoy SDK debug mode debugEnabled
.
setLoggingLevel (TJLoggingLevel loggingLevel )
→ Future <void >
Sets the logging level for the Tapjoy SDK.
setMaxLevel (int maxUserLevel )
→ Future <void >
Set the maximum level of the user.
setUserID ({required String ? userId , TapjoyOnSetUserIDSuccessListener ? onSetUserIDSuccess , TapjoyOnSetUserIDFailureListener ? onSetUserIDFailure })
→ Future <void >
Set/update userID with userID
onSetUserIDSuccess
callback will be called on successfull connect call. onSetUserIDFailure
callback will be called otherwise.
setUserLevel (int userLevel )
→ Future <void >
Set the level of the user.
setUserSegment (TJSegment userSegment )
→ Future <void >
Set the segment of the user.
setUserTags (Set <String > tags )
→ Future <void >
Sets tags for the user.
spendCurrency ({required int amount , TapjoyOnSpendCurrencySuccessListener ? onSpendCurrencySuccess , TapjoyOnSpendCurrencyFailureListener ? onSpendCurrencyFailure })
→ Future <void >
Spends currency amount
, onSpendCurrencySuccess
callback will be called on successfull call. onSpendCurrencyFailure
callback will be called otherwise.
trackPurchase (String currencyCode , double price )
→ Future <void >
Tracks a purchase