SohaSDK¶
Overview¶
SohaSDK is the main class of the SohaGame SDK, and encapsulates most of the methods To import SohaSDK:
Public Method¶
Initializes the SDK and starts the setup process.
Starts the process of paying for a product.
public void payProduct(final Activity activity, final String orderInfo, final OnPayListener onPayListener)
Starts the process of paying for a product with ext
param
public void payProduct(final Activity activity, final String orderInfo, final OnPayListener onPayListener, String ext)
Open the payment form of SohaSDK
Retrieves a list of products
Displays the dashboard UI
Initiates the login process
Send the set_role
event for tracking character information and game server
public void mapUserGame(final Activity activity, final String areaId, final String roleId, final String roleName,
final String roleLevel)
Logs create_character
of a character in the game
public void logCreateCharacter(final Activity activity, final String areaId, final String roleId, final String roleName,
final String roleLevel)
Initiates the logout process
Sets the language of the SDK
Open the Store to review the app
Initiates the process of deleting the user's account