public class DocumentWorkspace
extends Object
Embedded methods must be called via SGAgent.runExtMethod .
Item | Value | Comment |
---|---|---|
Description | Get properties of SGSDK instance and current logged-in user. | |
Prototype | String getSDKProperties() | |
Return value | A JSON object contains fields "Version" (String), "PaymentChannel" (String), "Email" (String), "Tel" (String), "Area" (String), "KidIndex" (int), "KidName" (String), "KidFace" (String) | |
Timing | any time | |
Result notification | Synchronous |
Item | Value | Comment |
---|---|---|
Description | Set properties of SGSDK instance and current logged-in user. | |
Prototype | String setSDKProperties(String ... args) | |
args[0] | A JSON object contains fields "Version" (String), "PaymentChannel" (String), "Email" (String), "Tel" (String), "Area" (String), "KidIndex" (int), "KidName" (String), "KidFace" (String) | |
Return value | none | |
Timing | any time | |
Result notification | Synchronous |
Item | Value | Comment |
---|---|---|
Description | Apply for a user account | |
Prototype | void signUp(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | before logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Reset password. | |
Prototype | void forgotPassword(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | before logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Change password. | |
Prototype | void changePassword(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | before logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Set parent lock. | |
Prototype | void parentalLock(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | after logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Manage kids. | |
Prototype | void myKid(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | after logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Select kid. | |
Prototype | void selectKid(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | after logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Manage account. | |
Prototype | void myAccount(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | after logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Show news page. | |
Prototype | void news(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | after logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Change language. | |
Prototype | void changeLanguage(String cookie, String ... args) | |
Cookie | A string to be returned as is in result notification | |
args[0] | locale name ("en", "zh-cn", "zh-tw" or "zh-hk") | |
Return value | none | |
Timing | after logged in | |
Result notification | Asynchronous |
Item | Value | Comment |
---|---|---|
Description | Verify the current session is alive or not. | |
Prototype | void verifySession(String cookie) | |
Cookie | A string to be returned as is in result notification | |
Return value | none | |
Timing | after logged in | |
Result notification | Asynchronous |
Constructor and Description |
---|
DocumentWorkspace() |