- getAccount() - Method in class com.sg.util.SGAgent
-
Get final account.
- getAccountID() - Method in class com.sg.util.UAccount
-
Get account ID.
- getAccountName() - Method in class com.sg.util.UAccount
-
Get account ID.
- getApkVersionCode() - Method in class com.sg.util.SGAgent
-
Get version code.
- getApkVersionName() - Method in class com.sg.util.SGAgent
-
Get version name.
- getAppID() - Method in class com.sg.util.SGAgent
-
Get application ID.
- getAppID() - Method in class com.sg.util.UProduct
-
Get app ID.
- getAppKey() - Method in class com.sg.util.SGAgent
-
Get application key.
- getAppName() - Method in class com.sg.util.UProduct
-
Get app name.
- getBuyNum() - Method in class com.sg.util.UPayParams
-
Get copies.
- getChannelConfigs() - Method in class com.sg.util.SGAgent
-
Get channel config items.
- getChannelID() - Method in class com.sg.util.SGAgent
-
Get channel ID.
- getChannelName() - Method in class com.sg.util.SGAgent
-
Get channel short name.
- getChannelProductID() - Method in class com.sg.util.UProduct
-
Get product ID.
- getChannelProductJSON() - Method in class com.sg.util.UProduct
-
Get product name.
- getChannelProductName() - Method in class com.sg.util.UProduct
-
Get product name.
- getCoins() - Method in class com.sg.util.UProduct
-
Get product coins.
- getCompletedTime() - Method in class com.sg.util.UOrder
-
Get time of completion.
- getDeliveredTime() - Method in class com.sg.util.UOrder
-
Get time of delivery.
- getDeviceID() - Method in class com.sg.util.SGAgent
-
Get device ID.
- getExtension() - Method in class com.sg.util.UOrderTicket
-
Get extended information.
- getExtension() - Method in class com.sg.util.USession
-
Get extended information.
- getGameServer() - Method in class com.sg.util.SGAgent
-
Get current game server instance.
- getGeneratedTime() - Method in class com.sg.util.UOrder
-
Get time of generation.
- getJobState() - Method in class com.sg.util.SGAgent
-
Get information retrieval state.
- getLoginExtension() - Method in class com.sg.util.USession
-
Get extended channel login information.
- getLoginExtensionMap() - Method in class com.sg.util.SGAgent
-
- getLogValue(String, int) - Method in class com.sg.util.SGAgent
-
Start progress to get value of remote log key.
- getLogValue(String, int) - Method in interface com.sg.util.SGGameServerInterface
-
Get value of remote log key.
- getOpName(int) - Method in class com.sg.util.SGAgent
-
Get name of operation, for readable debug output.
- getOrder(UProduct, UPayParams) - Method in interface com.sg.util.SGGameServerInterface
-
Ask game server to generate order.
- getOrderID() - Method in class com.sg.util.UOrderTicket
-
Get order ID.
- getOrderInfoList(String) - Method in class com.sg.util.SGAgent
-
Start order info list retrieval progress.
- getOrderInfoList(String) - Method in interface com.sg.util.SGGameServerInterface
-
Get user's order list.
- getOrderState(String) - Method in class com.sg.util.SGAgent
-
Start payment result retrieval progress.
- getOrderState(String, String, int) - Method in interface com.sg.util.SGGameServerInterface
-
Query game server about order state.
- getOrderTicket() - Method in class com.sg.util.UOrder
-
Get order ticket.
- getPayParams() - Method in class com.sg.util.UOrder
-
Get payment parameters.
- getPayState() - Method in class com.sg.util.SGAgent
-
Get product purchase state.
- getPhone() - Method in class com.sg.util.UAccount
-
- getPlayerDetails() - Method in class com.sg.util.SGAgent
-
Get player details.
- getPlayerDetails() - Method in interface com.sg.util.SGGameServerInterface
-
Get detailed description of player.
- getPrice() - Method in class com.sg.util.UProduct
-
Get product price.
- getProduct() - Method in class com.sg.util.UOrder
-
Get product.
- getProductByOrderID(String) - Method in class com.sg.util.SGAgent
-
Find product corresponding to specified order ID.
- getProductDesc() - Method in class com.sg.util.UProduct
-
Get product description.
- getProductID() - Method in class com.sg.util.UPayParams
-
Get product ID.
- getProductID() - Method in class com.sg.util.UProduct
-
Get product ID.
- getProductList(String) - Method in interface com.sg.util.SGGameServerInterface
-
Get product list of application.
- getProductName() - Method in class com.sg.util.UProduct
-
Get product name.
- getProducts(String, boolean) - Method in class com.sg.util.SGAgent
-
Start product list retrieval progress.
- getRatio() - Method in class com.sg.util.UPayParams
-
Get conversion ratio.
- getRecoverToken() - Method in class com.sg.util.USession
-
Get token to restore session.
- getRoleID() - Method in class com.sg.util.UProduct
-
Get role ID.
- getRoleLevel() - Method in class com.sg.util.UProduct
-
Get role level.
- getRoleName() - Method in class com.sg.util.UProduct
-
Get role name.
- getSdkUserID() - Method in class com.sg.util.USession
-
Get channel user ID.
- getSdkUsername() - Method in class com.sg.util.USession
-
Get channel user name.
- getServerID() - Method in class com.sg.util.UProduct
-
Get game server ID.
- getServerName() - Method in class com.sg.util.UProduct
-
Get game server name.
- getSession() - Method in class com.sg.util.SGAgent
-
Get session.
- getSGGameKey() - Method in class com.sg.util.UAccount
-
- getSGOpenID() - Method in class com.sg.util.UAccount
-
- getSGRecoverToken() - Method in class com.sg.util.UAccount
-
- getState() - Method in class com.sg.util.UOrder
-
Get product purchasing state.
- getStateChangeReasonName(int) - Method in class com.sg.util.SGAgent
-
Get name of state change reason, for readable debug output.
- getStateName(int, int) - Method in class com.sg.util.SGAgent
-
Get name of state, for readable debug output.
- getStateTypeName(int) - Method in class com.sg.util.SGAgent
-
Get name of state type, for readable debug output.
- getSubChannelName() - Method in class com.sg.util.SGAgent
-
Get name of sub-channel.
- getSuc() - Method in class com.sg.util.USession
-
Get login state.
- getToken() - Method in class com.sg.util.USession
-
Get channel token.
- getTreasureList(String) - Method in class com.sg.util.SGAgent
-
Start treasure list retrieval progress.
- getTreasureList(String) - Method in interface com.sg.util.SGGameServerInterface
-
Get user's treasure list.
- getUserID() - Method in class com.sg.util.USession
-
Get SG user ID.
- getUsername() - Method in class com.sg.util.USession
-
Get SG user name.
- getUsrState() - Method in class com.sg.util.SGAgent
-
Get user login state.
- getVip() - Method in class com.sg.util.UPayParams
-
Get VIP information.
- JOBSTATE_ERROR - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Error
- JOBSTATE_GETTINGLOGVALUE - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Increasing treasure count
- JOBSTATE_GETTINGORDERINFOLIST - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Retrieving order info list
- JOBSTATE_GETTINGPLAYERDETAILS - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Getting player details
- JOBSTATE_GETTINGPRODUCTS - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Retrieving product list
- JOBSTATE_GETTINGTREASURELIST - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Retrieving treasure list
- JOBSTATE_GOTPLAYERDETAILS - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Got player details
- JOBSTATE_IDLE - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Idle
- JOBSTATE_INCINGTREASURE - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Increasing treasure count
- JOBSTATE_REQUESTEDSTARTGAME - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Starting game request processed
- JOBSTATE_REQUESTEDSTOPGAME - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Stopping game request processed
- JOBSTATE_REQUESTINGSTARTGAME - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Requesting to start game
- JOBSTATE_REQUESTINGSTOPGAME - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Requesting to stop game
- JOBSTATE_SHAREDSCREEN - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Shared screen
- JOBSTATE_SHARINGSCREEN - Static variable in class com.sg.util.SGAgent
-
Information retrieval state: Sharing screen
- onActivityResult(int, int, Intent) - Method in class com.sg.util.SGActivity
-
Override onActivityResult of Activity.
- onActivityResult(int, int, Intent) - Method in class com.sg.util.SGAgent
-
Called in onActivityResult callback of main Activity.
- onBackPressed() - Method in class com.sg.util.SGActivity
-
Override onBackPressed of Activity.
- onBackPressed() - Method in class com.sg.util.SGAgent
-
Called in onBackPressed callback of main Activity.
- onCreate(Bundle) - Method in class com.sg.util.SGActivity
-
Overrides onCreate of Activity.
- onCreate(Activity, SGAgent.SGClient) - Method in class com.sg.util.SGAgent
-
Initalize SGUtil library.
- onDestroy() - Method in class com.sg.util.SGActivity
-
Override onDestroy of Activity.
- onDestroy() - Method in class com.sg.util.SGAgent
-
Called in onDestroy callback of main Activity.
- onExitCancelled() - Method in class com.sg.util.SGActivity
-
- onExitCancelled() - Method in interface com.sg.util.SGAgent.SGClient
-
Notify that the exit operation was cancelled.
- onExtMethodNotification(String, int, String) - Method in class com.sg.util.SGActivity
-
- onExtMethodNotification(String, int, String) - Method in interface com.sg.util.SGAgent.SGClient
-
Notify the result of asynchronous function.
- onFuncRequest(String, String, String) - Method in class com.sg.util.SGActivity
-
- onFuncRequest(String, String, String) - Method in interface com.sg.util.SGAgent.SGClient
-
Notify client the underlying layer request application to execute a function.
- onKeyDown(int, KeyEvent) - Method in class com.sg.util.SGActivity
-
Override onKeyDown of Activity.
- onKeyDown(int, KeyEvent) - Method in class com.sg.util.SGAgent
-
Called in onKeyDown callback of main Activity.
- onLog(String) - Method in class com.sg.util.SGActivity
-
- onLog(String, String) - Method in class com.sg.util.SGActivity
-
- onLog(String) - Method in interface com.sg.util.SGAgent.SGClient
-
Display debug message.
- onLog(String, String) - Method in interface com.sg.util.SGAgent.SGClient
-
Display debug message.
- onLogValue(String, int, String) - Method in class com.sg.util.SGActivity
-
- onLogValue(String, int, String) - Method in interface com.sg.util.SGAgent.SGClient
-
Inform client value of remote log key.
- onNewIntent(Intent) - Method in class com.sg.util.SGActivity
-
Override onNewIntent of Activity.
- onNewIntent(Intent) - Method in class com.sg.util.SGAgent
-
Called in onNewIntent callback of main Activity.
- onOrderInfoBegin(int) - Method in class com.sg.util.SGActivity
-
- onOrderInfoBegin(int) - Method in interface com.sg.util.SGAgent.SGClient
-
Inform client that order information notification will be started.
- onOrderInfoEnd() - Method in class com.sg.util.SGActivity
-
- onOrderInfoEnd() - Method in interface com.sg.util.SGAgent.SGClient
-
Inform client that order information notification is finished.
- onOrderInfoFound(UOrder) - Method in class com.sg.util.SGActivity
-
- onOrderInfoFound(UOrder) - Method in interface com.sg.util.SGAgent.SGClient
-
Send order information to client.
- onOrderStateChange(String, int, String, String, String) - Method in class com.sg.util.SGActivity
-
- onOrderStateChange(String, int, String, String, String) - Method in interface com.sg.util.SGAgent.SGClient
-
Notify client the state change of product purchase.
- onPause() - Method in class com.sg.util.SGActivity
-
Override onPause of Activity.
- onPause() - Method in class com.sg.util.SGAgent
-
Called in onPause callback of main Activity.
- onPlayerDetails(String) - Method in class com.sg.util.SGActivity
-
- onPlayerDetails(String) - Method in interface com.sg.util.SGAgent.SGClient
-
Notify player details.
- onPostInitialization(Bundle) - Method in class com.sg.util.SGActivity
-
- onPreInitialization(Bundle) - Method in class com.sg.util.SGActivity
-
- onProductBegin(int) - Method in class com.sg.util.SGActivity
-
- onProductBegin(int) - Method in interface com.sg.util.SGAgent.SGClient
-
Inform client that product information notification will be started.
- onProductEnd() - Method in class com.sg.util.SGActivity
-
- onProductEnd() - Method in interface com.sg.util.SGAgent.SGClient
-
Inform client that product information notification is finished.
- onProductFound(UProduct) - Method in class com.sg.util.SGActivity
-
- onProductFound(UProduct) - Method in interface com.sg.util.SGAgent.SGClient
-
Send product information to client.
- onRequestPermissionsResult(int, String[], int[]) - Method in class com.sg.util.SGActivity
-
Override onRequestPermissionsResult of Activity.
- onRequestPermissionsResult(int, String[], int[]) - Method in class com.sg.util.SGAgent
-
Called in onRequestPermissionsResult callback of main Activity.
- onRestart() - Method in class com.sg.util.SGActivity
-
Override onRestart of Activity.
- onRestart() - Method in class com.sg.util.SGAgent
-
Called in onRestart callback of main Activity.
- onResume() - Method in class com.sg.util.SGActivity
-
Override onResume of Activity.
- onResume() - Method in class com.sg.util.SGAgent
-
Called in onResume callback of main Activity.
- onStart() - Method in class com.sg.util.SGActivity
-
Override onStart of Activity.
- onStart() - Method in class com.sg.util.SGAgent
-
Called in onStart callback of main Activity.
- onStateChange(int, int, int, int, int, String) - Method in class com.sg.util.SGActivity
-
- onStateChange(int, int, int, int, int, String) - Method in interface com.sg.util.SGAgent.SGClient
-
Notify client the internal state change in SGAgent.
- onStop() - Method in class com.sg.util.SGActivity
-
Override onStop of Activity.
- onStop() - Method in class com.sg.util.SGAgent
-
Called in onStop callback of main Activity.
- onTreasureChange(String, int) - Method in class com.sg.util.SGActivity
-
- onTreasureChange(String, int) - Method in interface com.sg.util.SGAgent.SGClient
-
Inform client updated treasure count.
- onTreasureListFound(String[]) - Method in class com.sg.util.SGActivity
-
- onTreasureListFound(String[]) - Method in interface com.sg.util.SGAgent.SGClient
-
Inform client that treasure list is retrieved.
- OP_AUTH - Static variable in class com.sg.util.SGAgent
-
Channel login verification
- OP_DLVORDER - Static variable in class com.sg.util.SGAgent
-
Marking as delivered
- OP_GETLOGVALUE - Static variable in class com.sg.util.SGAgent
-
Get value of remote log key
- OP_GETORDER - Static variable in class com.sg.util.SGAgent
-
Order generation
- OP_GETORDERINFOLIST - Static variable in class com.sg.util.SGAgent
-
Order info list retrieval
- OP_GETORDERSTATE - Static variable in class com.sg.util.SGAgent
-
Order state retrieval
- OP_GETPLAYERDETAILS - Static variable in class com.sg.util.SGAgent
-
Get player details
- OP_GETPRODUCTS - Static variable in class com.sg.util.SGAgent
-
Product list retrieval
- OP_GETTREASURELIST - Static variable in class com.sg.util.SGAgent
-
Order info list retrieval
- OP_INCTREASURE - Static variable in class com.sg.util.SGAgent
-
Increase treasure count
- OP_INIT - Static variable in class com.sg.util.SGAgent
-
Initialization
- OP_LOGIN - Static variable in class com.sg.util.SGAgent
-
Channel login
- OP_LOGINGAME - Static variable in class com.sg.util.SGAgent
-
Game server login
- OP_LOGOUT - Static variable in class com.sg.util.SGAgent
-
Channel logout
- OP_LOGOUTGAME - Static variable in class com.sg.util.SGAgent
-
Game server logout
- OP_NONE - Static variable in class com.sg.util.SGAgent
-
No operation
- OP_PAY - Static variable in class com.sg.util.SGAgent
-
Pay
- OP_SHARESCREEN - Static variable in class com.sg.util.SGAgent
-
Share screen
- OP_STARTGAME - Static variable in class com.sg.util.SGAgent
-
Start game
- OP_STOPGAME - Static variable in class com.sg.util.SGAgent
-
Stop game
- setAccountID(String) - Method in class com.sg.util.UAccount
-
Set account ID.
- setAccountName(String) - Method in class com.sg.util.UAccount
-
Set account ID.
- setAppID(int) - Method in class com.sg.util.UProduct
-
Set app ID.
- setAppName(String) - Method in class com.sg.util.UProduct
-
Set app name.
- setBuyNum(int) - Method in class com.sg.util.UPayParams
-
Set copies.
- setChannelProductID(String) - Method in class com.sg.util.UProduct
-
Set product ID.
- setChannelProductJSON(String) - Method in class com.sg.util.UProduct
-
Set product name.
- setChannelProductName(String) - Method in class com.sg.util.UProduct
-
Set product name.
- setCoins(int) - Method in class com.sg.util.UProduct
-
Set product coins.
- setCompletedTime(long) - Method in class com.sg.util.UOrder
-
Set time of completion.
- setDeliveredTime(long) - Method in class com.sg.util.UOrder
-
Set time of delivery.
- setExtension(String) - Method in class com.sg.util.UOrderTicket
-
Set extended information.
- setExtension(String) - Method in class com.sg.util.USession
-
Set extended information.
- setGameServer(SGGameServerInterface, Map<String, String>) - Method in class com.sg.util.SGAgent
-
Set game server instance.
- setGeneratedTime(long) - Method in class com.sg.util.UOrder
-
Set time of generation.
- setLoginExtension(String) - Method in class com.sg.util.USession
-
Set extended channel login information.
- setOrderID(String) - Method in class com.sg.util.UOrderTicket
-
Set order ID.
- setOrderStateCheckingIntervals(int[]) - Method in class com.sg.util.SGAgent
-
Set intervals in milliseconds to wait before starting automatic result query
(after order payment is successfully submitted to channel -- that is, the payment UI operation succeeded).
- setOrderTicket(UOrderTicket) - Method in class com.sg.util.UOrder
-
Set order ticket.
- setPayParams(UPayParams) - Method in class com.sg.util.UOrder
-
Set payment parameters.
- setPhone(String) - Method in class com.sg.util.UAccount
-
- setPrice(int) - Method in class com.sg.util.UProduct
-
Set product price.
- setProduct(UProduct) - Method in class com.sg.util.UOrder
-
Set product.
- setProductDesc(String) - Method in class com.sg.util.UProduct
-
Set product description.
- setProductID(String) - Method in class com.sg.util.UPayParams
-
Set product ID.
- setProductID(String) - Method in class com.sg.util.UProduct
-
Set product ID.
- setProductName(String) - Method in class com.sg.util.UProduct
-
Set product name.
- setRatio(int) - Method in class com.sg.util.UPayParams
-
Set conversion ratio.
- setRecoverToken(String) - Method in class com.sg.util.USession
-
Set token to restore session.
- setRoleID(String) - Method in class com.sg.util.UProduct
-
Set role ID.
- setRoleLevel(int) - Method in class com.sg.util.UProduct
-
Set role level.
- setRoleName(String) - Method in class com.sg.util.UProduct
-
Set role name.
- setSdkUserID(String) - Method in class com.sg.util.USession
-
Set channel user ID.
- setSdkUsername(String) - Method in class com.sg.util.USession
-
Set channel user name.
- setServerID(String) - Method in class com.sg.util.UProduct
-
Set game server ID.
- setServerName(String) - Method in class com.sg.util.UProduct
-
Set game server name.
- setSGGameKey(String) - Method in class com.sg.util.UAccount
-
- setSGOpenID(String) - Method in class com.sg.util.UAccount
-
- setSGRecoverToken(String) - Method in class com.sg.util.UAccount
-
- setStartupParams(String) - Method in class com.sg.util.SGAgent
-
- setState(String) - Method in class com.sg.util.UOrder
-
Set product purchasing state.
- setSuc(boolean) - Method in class com.sg.util.USession
-
Set login state.
- setToken(String) - Method in class com.sg.util.USession
-
Set channel token.
- setUserID(String) - Method in class com.sg.util.USession
-
Set SG user ID.
- setUsername(String) - Method in class com.sg.util.USession
-
Set SG user name.
- setVip(String) - Method in class com.sg.util.UPayParams
-
Set VIP information.
- SGActivity - Class in com.sg.util
-
SGActivity is a sample implementation that demonstrates usage of SGAgent.
- SGActivity() - Constructor for class com.sg.util.SGActivity
-
- SGAgent - Class in com.sg.util
-
SGAgent is the main class of SGUtil library.
- SGAgent() - Constructor for class com.sg.util.SGAgent
-
- SGAgent.SGClient - Interface in com.sg.util
-
SGClient interface.
- SGGAMESERVER_LOG_ACTION_DECVALUE - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_INCVALUE - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_LOG - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_LOGIN - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_LOGOUT - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_MAXVALUE - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_MINVALUE - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_STARTGAME - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_STOPGAME - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGAMESERVER_LOG_ACTION_UPDATEVALUE - Static variable in interface com.sg.util.SGGameServerInterface
-
- SGGameServerInterface - Interface in com.sg.util
-
Game server interface.
- shareScreen(String, String, String) - Method in class com.sg.util.SGAgent
-
Share screen.
- startGame() - Method in class com.sg.util.SGAgent
-
Request to start game.
- startGame() - Method in interface com.sg.util.SGGameServerInterface
-
Start game.
- STATE_CHANGE_REASON_NONE - Static variable in class com.sg.util.SGAgent
-
Reason of state change: None
- STATE_CHANGE_REASON_OP - Static variable in class com.sg.util.SGAgent
-
Reason of state change: An operation was performed
- STATE_CHANGE_REASON_OP_CANCELED - Static variable in class com.sg.util.SGAgent
-
Reason of state change: Operation cancelled
- STATE_CHANGE_REASON_OP_FAILURE - Static variable in class com.sg.util.SGAgent
-
Reason of state change: Operation failed
- STATE_CHANGE_REASON_OP_SUCCESS - Static variable in class com.sg.util.SGAgent
-
Reason of state change: Operation succeeded
- STATE_TYPE_JOB - Static variable in class com.sg.util.SGAgent
-
Information retrieval state
- STATE_TYPE_PAY - Static variable in class com.sg.util.SGAgent
-
Product purchase
- STATE_TYPE_USR - Static variable in class com.sg.util.SGAgent
-
User login state
- stopGame() - Method in class com.sg.util.SGAgent
-
Request to stop game.
- stopGame() - Method in interface com.sg.util.SGGameServerInterface
-
Stop game.