FuseSDK (Android)  2.0.0
 All Classes Functions Variables
com.fusepowered.FuseSDK Class Reference

Static Public Member Functions

static void startSession (String appId, Activity mainActivity, FuseSDKListener listener, HashMap< String, String > options)
 Initiate communication with the Fuse system and register for callbacks. More...
 
static void pauseSession ()
 Pauses the Fuse session. More...
 
static void resumeSession (Activity activity)
 Resumes the Fuse session. More...
 
static void endSession ()
 Ends the Fuse session. More...
 
static void setListener (FuseSDKListener listener)
 Changes the listener object that Fuse will send callbacks to. More...
 
static void removeListener ()
 Removes the listener object. More...
 
static void setupPushNotifications (String GCMProjectNumber, Intent intent, int smallIconId, int largeIconId)
 Set up the game to receive push notifications. More...
 
static void setupPushNotifications (Intent intent, int smallIconId, int largeIconId, String...GCMProjectNumbers)
 Set up the game to receive push notifications from multiple senders. More...
 
static void registerInAppPurchase (VerifiedPurchase purchase, double price, String currency)
 Records in-app purchases in the Fuse system when the price and currency are known. More...
 
static void registerInAppPurchase (VerifiedPurchase purchase)
 Records in-app purchases in the Fuse system when the price and currency are NOT known. More...
 
static boolean isAdAvailableForZoneID (String zoneID)
 This method returns if an ad was loaded in a particular zone. More...
 
static boolean zoneHasRewarded (String zoneID)
 Use this method to query whether or not an ad zone has rewarded video content in it;. More...
 
static boolean zoneHasIAPOffer (String zoneID)
 Use this method to query whether or not an ad zone has an IAP offer in it. More...
 
static boolean zoneHasVirtualGoodsOffer (String zoneID)
 Use this method to query whether or not an ad zone has a virtual goods offer in it. More...
 
static RewardedInfo getRewardedInfoForZoneID (String zoneID)
 Get the rewarded that a user will receive for watching a video in the given zone. More...
 
static void showAdForZoneID (String zoneID, HashMap< String, String > options)
 This method displays a Fuse interstitial ad for a given ad zone. Different ad zones can be configured via the Fuse Dashboard. More...
 
static void preloadAdForZoneID (String zoneID)
 This method indicates that an ad should be loaded for the given zone. More...
 
static void displayMoreGames ()
 This method is use to display the "More Games" activity. More...
 
static boolean isNotificationAvailable ()
 Check if a Fuse notification is available. More...
 
static void displayNotifications ()
 This method is used to display in-game Fuse notifications. More...
 
static void registerGender (Gender gender)
 This method registers a gender for the user. More...
 
static void registerAge (int age)
 This method registers the user's age if known. More...
 
static void registerBirthday (int year, int month, int day)
 This method registers the user's birthday if known. More...
 
static void registerLevel (int level)
 Register the user's current level after they level-up. More...
 
static void registerCurrency (int currency, int balance)
 Register a change in the current balances of the user's in-app currencies. More...
 
static String getFuseID ()
 This method returns the public Fuse ID for the logged in user. More...
 
static String getOriginalAccountID ()
 Get the original account ID used to log in to the Fuse system that corresponds to the Fuse ID. More...
 
static AccountType getOriginalAccountType ()
 Get the original account type used to log in to the Fuse system that corresponds to the Fuse ID. More...
 
static String getOriginalAccountAlias ()
 Get the original account alias of the user used to log in to the Fuse system. More...
 
static void facebookLogin (String facebookId, String name, String accessToken)
 Facebook account registration. More...
 
static void twitterLogin (String twitterId, String alias)
 Twitter account registration. More...
 
static void fuseLogin (String fuseID, String alias)
 Fuse account registration. More...
 
static void emailLogin (String email, String alias)
 Email account registration. More...
 
static void deviceLogin (String alias)
 Device account registration. More...
 
static void googlePlayLogin (String token, String alias)
 Google Play account registration. More...
 
static int gamesPlayed ()
 Get the number of times the user has opened the game.
 
static String libraryVersion ()
 Get the version of the Fuse SDK included in the game.
 
static boolean connected ()
 This method indicates whether the application is connected to the internet.
 
static void utcTimeFromServer ()
 Requests the UTC time from the server. More...
 
static void disableData ()
 This method opts a user out of data being collected by the API. More...
 
static void enableData ()
 This method opts a user in to data being collected by the API. More...
 
static boolean dataEnabled ()
 This method returns whether a user is opted in to data being collected by the API. More...
 
static void updateFriendsListFromServer ()
 Get a the user's friends list. More...
 
static List< PlayergetFriendsList ()
 This method returns the local friends list of the logged in user. More...
 
static void addFriend (String friendID)
 This method is used to invite (add) a friend to the logged in user's friends list. More...
 
static void removeFriend (String friendID)
 This method is used to delete a friend from the logged in user's friends list. More...
 
static void acceptFriend (String friendID)
 This method is used to accept a friend request. More...
 
static void userPushNotification (String friendID, String message)
 Send an Apple push notification to another user. More...
 
static void friendsPushNotification (String message)
 Send a push notification to a user's entire friends list. More...
 
static String getGameConfigurationValue (String key)
 This method retrieves server configuration values. More...
 
static HashMap< String, String > getGameConfiguration ()
 This method retrieves the entire server configuration value list. More...
 

Detailed Description

Created by Brennan on 2/17/15.

Member Function Documentation

static void com.fusepowered.FuseSDK.acceptFriend ( String  friendID)
static

This method is used to accept a friend request.

The inviting of a friend is a two-step process. The first step is to actually invite the user (source user) using addFriend, and the second step is the acceptance by the target user using this method. When complete, the registered listener will be sent a callback to the

Parameters
friendID
static void com.fusepowered.FuseSDK.addFriend ( String  friendID)
static

This method is used to invite (add) a friend to the logged in user's friends list.

A friend is not added right away to the inviting user's list. Instead, there is a handshaking mechanism whereby the invited user needs to agree to the invite before both users are shown in each others list. If a friend request is accepted a callback is sent to the registered listener's friendAccepted method

Parameters
friendID
See also
com.fusepowered.FuseSDKListener::friendAccepted(String, com.fusepowered.util.FuseAcceptFriendError)
static boolean com.fusepowered.FuseSDK.dataEnabled ( )
static

This method returns whether a user is opted in to data being collected by the API.

See also
FuseSDK::enableData()
FuseSDK::disableData()
static void com.fusepowered.FuseSDK.deviceLogin ( String  alias)
static

Device account registration.

Uniquely track a user based on their device identifier.

Parameters
aliasThe alias of the user
See also
com.fusepowered.FuseSDKListener::accountLoginComplete(int, String)
static void com.fusepowered.FuseSDK.disableData ( )
static

This method opts a user out of data being collected by the API.

See also
FuseSDK::enableData()
FuseSDK::dataEnabled()
static void com.fusepowered.FuseSDK.displayMoreGames ( )
static

This method is use to display the "More Games" activity.

The "More Games" activity can be used to showcase your own games or all games within the Fuse network (including yours!).

static void com.fusepowered.FuseSDK.displayNotifications ( )
static

This method is used to display in-game Fuse notifications.

The Fuse notification system can be used to deliver textual system notifications to your users, promoting features of your application for example or promoting another application. In addition, the Fuse system automatically configures notifications to rate your application in the App Store as well as upgrade your application when a new version is released. It is best to call this method early in the application flow of your game, preferably on your main menu.

Optionally, an action can be assigned to the closing of the dialog to notify the application that an internal action should be taken. In this case, the FuseSDKDelegate::notificationAction method would be called when the dialog is closing (only if the affirmative button is pressed).

static void com.fusepowered.FuseSDK.emailLogin ( String  email,
String  alias 
)
static

Email account registration.

Uniquely track a user across devices by passing an email address of a user.

Parameters
emailThis is the email address of the user
aliasThe alias of the user
See also
com.fusepowered.FuseSDKListener::accountLoginComplete(int, String)
static void com.fusepowered.FuseSDK.enableData ( )
static

This method opts a user in to data being collected by the API.

See also
FuseSDK::disableData()
FuseSDK::dataEnabled()
static void com.fusepowered.FuseSDK.endSession ( )
static

Ends the Fuse session.

This lets Fuse know that the game is closing. This is generally called in the onDestroy method of the main activity

static void com.fusepowered.FuseSDK.facebookLogin ( String  facebookId,
String  name,
String  accessToken 
)
static

Facebook account registration.

Uniquely track a user across devices by passing Facebook login information of a user.

Parameters
facebookIdThis is the account id of the user signed in to Facebook (e.g. 122611572)
nameThe first and last name of the user (i.e. "Jon Jovi"). Can be "" or nil if unknown.
accessTokenThis is the access token generated if a user signs in to a facebook app on the device (can be "" or nil if not available)
See also
com.fusepowered.FuseSDKListener::accountLoginComplete(int, String)
static void com.fusepowered.FuseSDK.friendsPushNotification ( String  message)
static

Send a push notification to a user's entire friends list.

Similar to userPushNotification, this method sends the same message to each user in the source user's friends list.

See also
FuseSDK::userPushNotification(String, String)
static void com.fusepowered.FuseSDK.fuseLogin ( String  fuseID,
String  alias 
)
static

Fuse account registration.

Uniquely track a user across devices by passing Fuse login information of a user.

Parameters
fuseIDThis is the account id of the user signed in to Fuse
aliasThe alias of the user
See also
com.fusepowered.FuseSDKListener::accountLoginComplete(int, String)
static List<Player> com.fusepowered.FuseSDK.getFriendsList ( )
static

This method returns the local friends list of the logged in user.

Similar to updateFriendsListFromServer, this method merely returns the local copy of the friends list. The local version of the list can differ from the server version in two ways. Firstly, friends could accept an invite in another device, clearing both

Returns
static String com.fusepowered.FuseSDK.getFuseID ( )
static

This method returns the public Fuse ID for the logged in user.

After a user has registered a login for one of the supported services (i.e. Facebook, Twitter, etc), a 9-digit 'Fuse ID' is generated that uniquely identifies the user. This ID can be passed between users as a public ID for the Fuse system so that user's can interact (i.e. invite as friends, etc.) without exposing confidential account information.

Returns
The 9-digit Fuse ID. This ID is strictly comprised of integers, but do not cast this value to an integer because a valid ID could have leading zeroes.
See also
com.fusepowered.FuseSDK::facebookLogin(String, String, String)
com.fusepowered.FuseSDK::twitterLogin(String, String)
com.fusepowered.FuseSDK::fuseLogin(String, String)
com.fusepowered.FuseSDK::emailLogin(String, String)
com.fusepowered.FuseSDK::deviceLogin(String)
com.fusepowered.FuseSDK::googlePlayLogin(String, String)
static HashMap<String, String> com.fusepowered.FuseSDK.getGameConfiguration ( )
static

This method retrieves the entire server configuration value list.

The Fuse SDK provides a method to store game configuration variables that are provided to the application on start.

It is recommended that a default value be present on the device in case the user has not or never connects to the Internet.

static String com.fusepowered.FuseSDK.getGameConfigurationValue ( String  key)
static

This method retrieves server configuration values.

The Fuse SDK provides a method to store game configuration variables that are provided to the application on start. These are stored on a per-game basis. In the Fuse dashboard, navigate to the 'configuration' tab in your game view. You can edit the "Game Data" section by adding keys and associated data values. Values can be 256 characters in length and support UTF-8 characters.

It is recommended that a default value be present on the device in case the user has not or never connects to the Internet.

Parameters
key
See also
FuseSDKListener::gameConfigurationReceived()
static String com.fusepowered.FuseSDK.getOriginalAccountAlias ( )
static

Get the original account alias of the user used to log in to the Fuse system.

Returns
the original user alias.
See also
FuseSDK::getOriginalAccountID() to get the ID associated with the account type
FuseSDK::getOriginalAccountType() to get the type associated with the account ID
static String com.fusepowered.FuseSDK.getOriginalAccountID ( )
static

Get the original account ID used to log in to the Fuse system that corresponds to the Fuse ID.

Returns
original parameter used to create the user account session.
See also
FuseSDK::getOriginalAccountType() to get the type associated with the account ID
FuseSDK::getOriginalAccountAlias() to get the alias associated with the account ID
static AccountType com.fusepowered.FuseSDK.getOriginalAccountType ( )
static

Get the original account type used to log in to the Fuse system that corresponds to the Fuse ID.

Returns
the type of account used to create the user account session.
See also
com.fusepowered.util.AccountType
FuseSDK::getOriginalAccountID() to get the ID associated with the account type
com.fusepowered.FuseSDK::getOriginalAccountAlias() to get the alias associated with the account ID
static RewardedInfo com.fusepowered.FuseSDK.getRewardedInfoForZoneID ( String  zoneID)
static

Get the rewarded that a user will receive for watching a video in the given zone.

If a zone is configured to show rewarded videos, this will return an object containing those details.

Parameters
zoneID
Returns
a RewardedInfo object with the reward information
See also
com.fusepowered.RewardedInfo
static void com.fusepowered.FuseSDK.googlePlayLogin ( String  token,
String  alias 
)
static

Google Play account registration.

Uniquely track a user across devices by passing Google Play login information of a user.

Parameters
tokenThis is the token of the user signed in to Google Play Games
aliasThe alias of the user
See also
com.fusepowered.FuseSDKListener::accountLoginComplete(int, String)
static boolean com.fusepowered.FuseSDK.isAdAvailableForZoneID ( String  zoneID)
static

This method returns if an ad was loaded in a particular zone.

This method is optional and can be used to test if an ad has been loaded and is known to be ready to show by the Fuse system before attempting to show an ad to the user.

Parameters
zoneID
static boolean com.fusepowered.FuseSDK.isNotificationAvailable ( )
static

Check if a Fuse notification is available.

Returns
true if a pending notification is available
static void com.fusepowered.FuseSDK.pauseSession ( )
static

Pauses the Fuse session.

This lets Fuse know that the game has been suspended and generally should be called from the onPause() method of the main activity.

static void com.fusepowered.FuseSDK.preloadAdForZoneID ( String  zoneID)
static

This method indicates that an ad should be loaded for the given zone.

This method is optional and is used to help ensure that an ad is shown in a timely manner. If the zone is not ready to display an ad, this will start loading an appropriate ad but will not show it until showAdForZoneId is called.

For example: when a game has a level completed screen and wants to show an ad when the user chooses to start the next level, you should call preloadAdForZoneID as soon as the level is completed and showAdForZoneID when the next level button is pressed.

Parameters
zoneID
static void com.fusepowered.FuseSDK.registerAge ( int  age)
static

This method registers the user's age if known.

Parameters
age
static void com.fusepowered.FuseSDK.registerBirthday ( int  year,
int  month,
int  day 
)
static

This method registers the user's birthday if known.

Parameters
year
month
day
static void com.fusepowered.FuseSDK.registerCurrency ( int  currency,
int  balance 
)
static

Register a change in the current balances of the user's in-app currencies.

To better track the currency levels of your users, this method can be used to keep the system up-to-date as to the levels of currencies across your users.

Parameters
currency1-4, representing up to four different in-app resources. These values can be set specific to the application.
balanceThe updated balance of the user
static void com.fusepowered.FuseSDK.registerGender ( Gender  gender)
static

This method registers a gender for the user.

Parameters
gender
See also
com.fusepowered.FuseSDKConstants.Gender
static void com.fusepowered.FuseSDK.registerInAppPurchase ( VerifiedPurchase  purchase,
double  price,
String  currency 
)
static

Records in-app purchases in the Fuse system when the price and currency are known.

When a purchase is made, google notifies the APP using onIabPurchaseFinished(IabResult result, Purchase info) and provides the info object

public void onIabPurchaseFinished(IabResult result, Purchase info)
{
VerifiedPurchase verifiedPurchase = new VerifiedPurchase(Integer.toString(info.getPurchaseState()), info.getToken(), info.getSku(), info.getOrderId(), info.getPurchaseTime(), info.getDeveloperPayload());
//If you know the price and currency then use this:
FuseSDK.registerInAppPurchase(verifiedPurchase, 1.99, "USD");
//Otherwise use
FuseSDK.registerInAppPurchase(verifiedPurchase);
}
Parameters
verifiedPurchase[VerifiedPurchase] An object set to the purchase details for easy parsing by the fuse system
price[double] The price of the object being purchased
currency[String] The currency string identifier
See also
FuseSDK::registerInAppPurchase(com.fusepowered.util.VerifiedPurchase)
static void com.fusepowered.FuseSDK.registerInAppPurchase ( VerifiedPurchase  purchase)
static

Records in-app purchases in the Fuse system when the price and currency are NOT known.

When a purchase is made, google notifies the APP using onIabPurchaseFinished(IabResult result, Purchase info) and provides the info object

public void onIabPurchaseFinished(IabResult result, Purchase info)
{
VerifiedPurchase verifiedPurchase = new VerifiedPurchase(Integer.toString(info.getPurchaseState()), info.getToken(), info.getSku(), info.getOrderId(), info.getPurchaseTime(), info.getDeveloperPayload());
FuseSDK.registerInAppPurchase(verifiedPurchase);
}
Parameters
verifiedPurchase[VerifiedPurchase] An object set to the purchase details for easy parsing by the fuse system
price[double] The price of the object being purchased
currency[String] The currency string identifier
See also
FuseSDK::registerInAppPurchase(com.fusepowered.util.VerifiedPurchase)
static void com.fusepowered.FuseSDK.registerLevel ( int  level)
static

Register the user's current level after they level-up.

This method can specifically track user levels to more accurately measure application penetration

Parameters
level
static void com.fusepowered.FuseSDK.removeFriend ( String  friendID)
static

This method is used to delete a friend from the logged in user's friends list.

Once a friend is removed by a user, both the target and source user will not show in each other's friends list. When complete, the registered listener will be sent a callback to the friendRemoved method

Parameters
friendID
See also
com.fusepowered.FuseSDKListener::friendRemoved(String, com.fusepowered.util.FuseRemoveFriendError)
static void com.fusepowered.FuseSDK.removeListener ( )
static

Removes the listener object.

This removes the listener object from Fuse and will prevent all callbacks from being sent. To start receiving callbacks again, use FuseSDK.setListener()

See also
FuseSDK::setListener(FuseSDKListener)
static void com.fusepowered.FuseSDK.resumeSession ( Activity  activity)
static

Resumes the Fuse session.

This lets Fuse know that the game has been resumed. This is generally called from the onResume method of the main activity. The activity parameter is used to ensure that Fuse is always aware of the games activity.

Parameters
activity
static void com.fusepowered.FuseSDK.setListener ( FuseSDKListener  listener)
static

Changes the listener object that Fuse will send callbacks to.

Fuse sends all of its callbacks to one listener object that is specified in the startSession call. This method updates that same listener reference.

Parameters
listener
See also
FuseSDK::startSession(String, android.app.Activity, FuseSDKListener, java.util.HashMap)
com.fusepowered.FuseSDK::removeListener()
static void com.fusepowered.FuseSDK.setupPushNotifications ( String  GCMProjectNumber,
Intent  intent,
int  smallIconId,
int  largeIconId 
)
static

Set up the game to receive push notifications.

This method allows you to enable push notifications from Fuse. This handles registering for tokens as well as displaying and tracking notifications when received and clicked.

When calling this method, the intent object parameter is cached and used in the future when a notification is opened. This allows you to specify which activity should be started from notifications.

You will need to create a project for your game in the Google Developers Console and save your token on the Fuse dashboard. See the wiki for more information.

Parameters
GCMProjectNumberThis value can be found on the Google Developers Console after creating and entry for your game
intentThe intent that will be started when a notification is opened
smallIconIda resource id for a small version of the icon used in the notification
largeIconIda resource id for a large version of the icon used in the notification
static void com.fusepowered.FuseSDK.setupPushNotifications ( Intent  intent,
int  smallIconId,
int  largeIconId,
String...  GCMProjectNumbers 
)
static

Set up the game to receive push notifications from multiple senders.

Only use this method if you need to send messages manually to the app that will not be sent by or handled by the Fuse system. You may pass multiple GCM project ids. Fuse will only handle messages sent by the first project id which should be exclusively used in the Fuse dashboard.

Any messages received from the other project ids will be ignored by Fuse and must be handled manually.

When the token has been registered, it will be provided to you through the FuseSDKListener.didRecieveGCMRegistrationToken(String) method *

Parameters
intentThe intent that will be started when a notification is opened
smallIconIda resource id for a small version of the icon used in the notification
largeIconIda resource id for a large version of the icon used in the notification
GCMProjectNumbersa list of GCM projects that can send messages to the app (The first in the list is the one that fuse will respond to)
See also
FuseSDK::setupPushNotifications(String, android.content.Intent, int, int)
com.fusepowered.FuseSDKListener::didRecieveGCMRegistrationToken(String)
static void com.fusepowered.FuseSDK.showAdForZoneID ( String  zoneID,
HashMap< String, String >  options 
)
static

This method displays a Fuse interstitial ad for a given ad zone. Different ad zones can be configured via the Fuse Dashboard.

This attempts to display an ad if one is available. If no ad is immediately ready to display this waits up to 3 seconds for an ad to load and displays immediately if loading finishes. FuseSDKListener::adWillClose method is always called at some point after calling this method, either when the ad is closed, or when no ads are loaded before timing out.

If this attempts to display a rewarded ad, by default, an alert will be shown offering the reward to the user, and after the video finishes confirming that they earned the reward. If this is handled by the game, the alerts can be disabled with the FuseSDKConstants::FuseRewardedAdOptionKey_ShowPreRoll and FuseSDKConstants::FuseRewardedAdOptionKey_ShowPostRoll options being set to "false"

Similarly, the button text on the alerts can be set with the FuseSDKConstants::FuseRewardedOptionKey_PreRollYesButtonText, FuseSDKConstants::FuseRewardedOptionKey_PreRollNoButtonText, and FuseSDKConstants::FuseRewardedOptionKey_PostRollContinueButtonText options.

If the user should receive a reward, the registered FuseSDKListener object will receive the rewardedAdCompleteWithObject(RewardedInfo) callback. If the user has accepted an IAP or virtual goods offer, the registered FuseSDKListener object will receive the IAPOfferAcceptedWithObject(OfferInfo), or virtualGoodsOfferAcceptedWithObject(OfferInfo) callback.

Parameters
zoneID
options
static void com.fusepowered.FuseSDK.startSession ( String  appId,
Activity  mainActivity,
FuseSDKListener  listener,
HashMap< String, String >  options 
)
static

Initiate communication with the Fuse system and register for callbacks.

The startSession function is used to bootstrap all communications with the Fuse system. This should be called at the cold start of the application (e.g. main activity's onCreate() method).

An example call would be:

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FuseSDK.startSession("APP_ID", this, this, null);
}

When a session has been established by Fuse system, a callback will be sent to the sessionStartReceived method of the provided listener. You should wait for this response before calling other FuseSDK methods.

Parameters
appIdThis is the 36-character API key assigned by the Fuse system. Your API key is generated when you add your App to the Fuse dashboard system.
activityThe main activity for your application
listenerThe object that will receive callbacks from FuseSDK
optionsOptional options for special cases. This should usually be null
See also
FuseSDKListener::sessionStartReceived()
FuseSDKListener::sessionLoginError()
static void com.fusepowered.FuseSDK.twitterLogin ( String  twitterId,
String  alias 
)
static

Twitter account registration.

Uniquely track a user across devices by passing Twitter login information of a user.

Parameters
twitterIdThis is the account id of the user signed in to Twitter
aliasThe alias of the user
See also
com.fusepowered.FuseSDKListener::accountLoginComplete(int, String)
static void com.fusepowered.FuseSDK.updateFriendsListFromServer ( )
static

Get a the user's friends list.

Once a user has signed in with one of the supported account services, they will have a friends list which is retrievable from the server. This list is composed of any friends that they have invited. This process is asynchronous in that it is required to go the the Fuse servers to retrieve the list. Therefore, the result is returned in to the registered listener's friendsListUpdated(ArrayList<Player>) method

See also
com.fusepowered.FuseSDKListener::friendsListUpdated(java.util.ArrayList)
FuseSDKListener::friendsListError(com.fusepowered.util.FuseFriendsListError)
static void com.fusepowered.FuseSDK.userPushNotification ( String  friendID,
String  message 
)
static

Send an Apple push notification to another user.

Use this method to send a push notification to another user, using their Fuse ID to each of their devices that have logged in with that ID (and that have registered to receive notifications). This system is dependent upon both the sender and the recipient to have logged in. This system would most likely be used in conjunction with another social tool, such as the friend's list (see getFriendsList), where a list of users and their associated Fuse IDs would be known. Messages can be no longer than 256 characters in length.

Parameters
friendID
message
See also
com.fusepowered.FuseSDK::getFriendsList()
static void com.fusepowered.FuseSDK.utcTimeFromServer ( )
static

Requests the UTC time from the server.

To help determine the psuedo-accurate real-world time (i.e. not device time), this method can be called to get the UTC time from the Fuse servers. The date is returned in unix time format (i.e. seconds elapsed since January 1, 1970). The returned value is only psuedo-accurate in that it does not account for request time and delays - so it is the time on the server when the request was received but not the time when the value returns to the device. This is generally used to prevent time exploits in games where such situations could occur (by a user changing their device time).

When the time is retrieved a callback will be sent to the registered FuseSDKListener's timeUpdated() method

See also
com.fusepowered.FuseSDKListener::timeUpdated(int)
static boolean com.fusepowered.FuseSDK.zoneHasIAPOffer ( String  zoneID)
static

Use this method to query whether or not an ad zone has an IAP offer in it.

Parameters
zoneID
Returns
true if the zone has an IAP offer configured
static boolean com.fusepowered.FuseSDK.zoneHasRewarded ( String  zoneID)
static

Use this method to query whether or not an ad zone has rewarded video content in it;.

Parameters
zoneID
Returns
true if the zone has a reward configured
static boolean com.fusepowered.FuseSDK.zoneHasVirtualGoodsOffer ( String  zoneID)
static

Use this method to query whether or not an ad zone has a virtual goods offer in it.

Parameters
zoneID
Returns
true if the zone has a virtual goods offer configured

The documentation for this class was generated from the following file: