Package | net.user1.reactor |
Class | public class AccountManager |
Inheritance | AccountManager ![]() |
Since : | Reactor 1.0.0 |
The AccountManager class provides control over Union user accounts. A Union user account gives a user:
Users that have created an account and logged in can save account attributes permanently using the UserAccount class's setAttribute() method. When a user logs in, all global account attributes for the user's account are automatically loaded. Room-scoped account attributes are automatically loaded as the user account's corresponding client joins or observes rooms.
By default, Union Server includes support for user accounts via a light-weight built-in database called Apache Derby. Because Derby is built-in to Union Server, Union's user-account features can be used without any special configuration or additional installation. However, developers who prefer to use another database or arbitrary data source can customize or fully replace Union's built-in database. For information on customizing Union's persistence data source, see Union Server Persistence.
To create a new user account from ActionScript, use AccountManager's createAccount() method. For example, the following code creates a new user account with the userID "ken", and the initial password "abc":
reactor.getAccountManager().createAccount("ken", "abc");
To determine the result of an account-creation attempt, register with the AccountManager for the AccountManagerEvent.CREATE_ACCOUNT_RESULT event, as follows:
// Register for the event reactor.getAccountManager().addEventListener( AccountManagerEvent.CREATE_ACCOUNT_RESULT, createAccountResultListener); // Provide an event listener protected function createAccountResultListener (e:AccountManagerEvent):void { trace("Create account result for [" + e.getUserID() + "]: " + e.getStatus()); }
To remove a user account, use AccountManager's removeAccount() method. For example, the following code removes the account with the userID "ken" and the password "abc":
reactor.getAccountManager().removeAccount("ken", "abc");
To determine the result of an account-removal attempt, register with the AccountManager for the AccountManagerEvent.REMOVE_ACCOUNT_RESULT event, as follows:
// Register for the event reactor.getAccountManager().addEventListener( AccountManagerEvent.REMOVE_ACCOUNT_RESULT, removeAccountResultListener); // Provide an event listener protected function removeAccountResultListener (e:AccountManagerEvent):void { trace("Remove account result for [" + e.getUserID() + "]: " + e.getStatus()); }
To login to a user account, use AccountManager's login() method. For example, the following code logs in the user with the userID "ken" and the password "abc":
reactor.getAccountManager().login("ken", "abc");
To determine the result of a login attempt, register with the AccountManager for the AccountEvent.LOGIN_RESULT event, as follows:
// Register for the event reactor.getAccountManager().addEventListener(AccountEvent.LOGIN_RESULT, loginResultListener); // Provide an event listener protected function loginResultListener (e:AccountEvent):void { trace("Login result for [" + e.getUserID() + "]: " + e.getStatus()); }
To be notified any time any known client logs in, register with the AccountManager for the AccountEvent.LOGIN event, as follows:
// Register for the event reactor.getAccountManager().addEventListener(AccountEvent.LOGIN, loginListener); // Provide an event listener protected function loginListener (e:AccountEvent):void { trace(e.getUserID() + " logged in."); }
To logoff a user account, use AccountManager's logoff() method or the UserAccount class's logoff() method (the service provided by the two methods is identical, but see the logoff() listing for minor API differences). For example, the following code logs off the current client's user account (notice that a userID and password are not required when logging off the current client's user account):
reactor.getAccountManager().selfAccount().logoff();
The following code logs off the account with the userID "ken" and the password "abc":
reactor.getAccountManager().logoff("ken", "abc");
To determine the result of a logoff attempt, register with the AccountManager or with the appropriate UserAccount object for the AccountEvent.LOGOFF_RESULT event, as follows:
// Register for the event reactor.getAccountManager().addEventListener(AccountEvent.LOGOFF_RESULT, logoffResultListener); // Provide an event listener protected function logoffResultListener (e:AccountEvent):void { trace("Logoff result for [" + e.getUserID() + "]: " + e.getStatus()); }
To be notified any time a specific user logs in or logs off, first observe that user, then register for the AccountEvent.LOGIN and AccountEvent.LOGOFF events, as follows:
// Keep track of user "bob"'s logged in status reactor.getAccountManager().addEventListener(AccountEvent.OBSERVE_RESULT, observeResultListener); reactor.getAccountManager().observeAccount("bob"); function observeResultListener (e:AccountEvent):void { if (e.getStatus() == Status.SUCCESS) { trace("Now observing account: " + e.getAccount()); e.getAccount().addEventListener(AccountEvent.LOGIN, loginListener); e.getAccount().addEventListener(AccountEvent.LOGOFF, logoffListener); } } function loginListener (e:AccountEvent):void { trace(e.getAccount().getUserID() + " logged in"); } function logoffListener (e:AccountEvent):void { trace(e.getAccount().getUserID() + " logged off."); }
See also
Method | Defined By | ||
---|---|---|---|
AccountManager(log:Logger) | AccountManager | ||
accountIsKnown(userID:String):Boolean
Returns a Boolean indicating whether the user account with the specified
userID is known to the current client. | AccountManager | ||
addRole(userID:String, role:String):void
Adds a new security role to a user account. | AccountManager | ||
changePassword(userID:String, newPassword:String, oldPassword:String = null):void
Changes a user-account password. | AccountManager | ||
createAccount(userID:String, password:String):void
Creates a user account, which is used to store persistent user
information such as an age, a travel booking, or a high score. | AccountManager | ||
getAccount(userID:String):UserAccount
Returns a reference to the account with the specified userID, if the
account is known to Reactor. | AccountManager | ||
getAccounts():Object | AccountManager | ||
getNumAccounts():int
Returns the number of known user accounts. | AccountManager | ||
getNumAccountsOnServer():int
If the AccountManager is watching for accounts, getNumAccountsOnServer()
returns the number of accounts on the server; otherwise, getNumAccountsOnServer()
returns 0. | AccountManager | ||
getNumLoggedInAccounts():int
Returns the number of known, logged-in user accounts. | AccountManager | ||
hasWatchedAccount(userID:String):Boolean
Returns true if the account with the specified userID is in the watched
account list; false otherwise. | AccountManager | ||
isObservingAccount(userID:String):Boolean
Returns true if the account with the specified userID is currently being
observed; false otherwise. | AccountManager | ||
isWatchingForAccounts():Boolean
Indicates whether the current client is currently watching for accounts. | AccountManager | ||
login(userID:String, password:String):void
Logs in the current client using the specified userID and password. | AccountManager | ||
logoff(userID:String = null, password:String = null):void
Logs off a user account. | AccountManager | ||
observeAccount(userID:String):void
Asks the server to register the current client as an observer of the
user account specified by userID. | AccountManager | ||
removeAccount(userID:String, password:String = null):void
Removes an existing user account. | AccountManager | ||
removeRole(userID:String, role:String):void
Removes a security role from a user account. | AccountManager | ||
Returns a reference to the current client's user account, if the
current client is logged in. | AccountManager | ||
stopWatchingForAccounts():void
Asks the server to stop watching for accounts. | AccountManager | ||
watchForAccounts():void
Asks the server to send a list of user accounts on the server, and then
send notification any time a user account is created or removed. | AccountManager |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the AccountManager is informed by Union Server that a user account was created. | AccountManager | |||
Dispatched when the AccountManager is informed by Union Server that a user account was deleted. | AccountManager | |||
Dispatched when the result of an earlier UserAccount.addRole() or AccountManager.addRole() request is received. | AccountManager | |||
Dispatched when the current client's account password changes. | AccountManager | |||
Dispatched when the current client receives the result of an earlier request to change a user account's password. | AccountManager | |||
Dispatched when the result of an earlier call to AccountManager's createAccount() method is received. | AccountManager | |||
Dispatched when any client that is known to the current client logs in. | AccountManager | |||
Dispatched when the result of an earlier login request by the current client is received. | AccountManager | |||
Dispatched when any user account that is known to the current client logs off. | AccountManager | |||
Dispatched when the current client receives the result of an earlier request to logoff a client. | AccountManager | |||
Dispatched when the current client observes a user account. | AccountManager | |||
Dispatched when the result of an earlier UserAccount.observe() or AccountManager.observeAccount() request is received. | AccountManager | |||
Dispatched when the result of an earlier call to AccountManager's removeAccount() method is received. | AccountManager | |||
Dispatched when the result of an earlier UserAccount.removeRole() or AccountManager.removeRole() request is received. | AccountManager | |||
Dispatched when the current client stops observing a user account. | AccountManager | |||
Dispatched when the result of an earlier UserAccount.stopObserving() or AccountManager.stopObservingAccount() request is received. | AccountManager | |||
Dispatched when the AccountManager receives the result of an earlier stopWatchingForAccounts() request. | AccountManager | |||
Dispatched when the AccountManager's list of user accounts has finished synchronization after a watchForAccounts() request. | AccountManager | |||
Dispatched when the AccountManager receives the result of an earlier watchForAccounts() request. | AccountManager |
AccountManager | () | Constructor |
accountIsKnown | () | method |
public function accountIsKnown(userID:String):Boolean
Since : | Reactor 1.0.0 |
Returns a Boolean indicating whether the user account with the specified userID is known to the current client. A given user account is known to the current client in the following situations:
Parameters
userID:String |
Boolean |
See also
addRole | () | method |
public function addRole(userID:String, role:String):void
Since : | Reactor 1.0.0 |
Adds a new security role to a user account. The result of the add-role attempt is returned via an AccountEvent.ADD_ROLE_RESULT event, which is dispatched both via the AccountManager and also via the UserAccount object for which the new role was requested. If no such account is known, the event is dispatched via the AccountManager only.
User-account roles can also be added via the UserAccount class's addRole() method.
For more information about security roles, see Union Server's security documentation.
Parameters
userID:String — The account's userID.
| |
role:String — The desired new role. For a list of built-in security roles,
see the SecurityRole class.
|
See also
The following code changes adds the SecurityRole.MODERATOR role to the account with the userID "tom".
reactor.getAccountManager().addRole("tom", SecurityRole.MODERATOR);
To determine the result of the preceding role-addition attempt, the following code registers for the AccountEvent.ADD_ROLE_RESULT event:
// Register for the event reactor.getAccountManager().addEventListener( AccountEvent.ADD_ROLE_RESULT, addRoleResultListener); // Provide an event listener protected function addRoleResultListener (e:AccountEvent):void { trace("Add role result for user [" + e.getUserID() + "], " + "role [" + e.getUserID() + "]: " + e.getStatus()); }
changePassword | () | method |
public function changePassword(userID:String, newPassword:String, oldPassword:String = null):void
Since : | Reactor 1.0.0 |
Changes a user-account password. The result of the password-change attempt is returned via an AccountEvent.CHANGE_PASSWORD_RESULT event, which is dispatched both via the AccountManager and also via the UserAccount object for which the change was requested. If no such account is known, the event is dispatched via the AccountManager only.
User-account passwords can also be changed via the UserAccount class's changePassword() method.
Parameters
userID:String — The account's userID.
| |
newPassword:String — The desired new account password.
| |
oldPassword:String (default = null ) — The account's existing password. If no password is supplied,
the password is changed only if the client requesting the change
has sufficient privileges.
|
See also
The following code changes the password for the account with the userID "ken". The account's old password is "abc", and new password is "xyz":
reactor.getAccountManager().changePassword("ken", "xyz", "abc");
To determine the result of the preceding password-change attempt, the following code registers for the AccountManagerEvent.CHANGE_PASSWORD_RESULT event:
// Register for the event reactor.getAccountManager().addEventListener( AccountManagerEvent.CHANGE_PASSWORD_RESULT, changePasswordResultListener); // Provide an event listener protected function changePasswordResultListener (e:AccountManagerEvent):void { trace("Change password result for [" + e.getUserID() + "]: " + e.getStatus()); }
createAccount | () | method |
public function createAccount(userID:String, password:String):void
Since : | Reactor 1.0.0 |
Creates a user account, which is used to store persistent user information such as an age, a travel booking, or a high score. The result of the account-creation attempt is returned via an AccountManagerEvent.CREATE_ACCOUNT_RESULT event. Once an account is created, a client can login to that account using AccountManager's login() method.
Parameters
userID:String | |
password:String |
See also
getAccount | () | method |
public function getAccount(userID:String):UserAccount
Since : | Reactor 1.0.0 |
Returns a reference to the account with the specified userID, if the account is known to Reactor. If the account is unknown, returns null.
Parameters
userID:String — A user account's userID.
|
UserAccount |
getAccounts | () | method |
public function getAccounts():Object
ReturnsObject |
getNumAccounts | () | method |
public function getNumAccounts():int
Since : | Reactor 1.0.0 |
Returns the number of known user accounts. When the AccountManager is watching for user accounts (see watchForAccounts()), getNumAccounts() returns the actual number of user accounts registered on the server. When the AccountManager is not watching for clients, getNumAccounts() returns only the number of accounts known to the current client. For example, if the current client is observing three accounts, and has no other awareness of accounts on the server, then getNumAccounts() will return 3, even though more than 3 accounts might be registered on the server.
Returnsint — The number of known user accounts.
|
See also
getNumAccountsOnServer | () | method |
public function getNumAccountsOnServer():int
Since : | Reactor 1.0.0 |
If the AccountManager is watching for accounts, getNumAccountsOnServer() returns the number of accounts on the server; otherwise, getNumAccountsOnServer() returns 0. When the AccountManager is watching for accounts, the getNumAccountsOnServer() method provides a faster alternative to getNumAccounts().
Returnsint |
See also
getNumLoggedInAccounts | () | method |
public function getNumLoggedInAccounts():int
Since : | Reactor 1.0.0 |
Returns the number of known, logged-in user accounts.
Returnsint |
See also
hasWatchedAccount | () | method |
public function hasWatchedAccount(userID:String):Boolean
Since : | Reactor 1.0.0 #see watchForAccounts() |
Returns true if the account with the specified userID is in the watched account list; false otherwise.
Parameters
userID:String |
Boolean |
isObservingAccount | () | method |
public function isObservingAccount(userID:String):Boolean
Since : | Reactor 1.0.0 |
Returns true if the account with the specified userID is currently being observed; false otherwise.
Parameters
userID:String |
Boolean |
See also
isWatchingForAccounts | () | method |
public function isWatchingForAccounts():Boolean
Since : | Reactor 1.0.0 |
Indicates whether the current client is currently watching for accounts.
ReturnsBoolean |
See also
login | () | method |
public function login(userID:String, password:String):void
Since : | Reactor 1.0.0 |
Logs in the current client using the specified userID and password. The result of the login attempt is returned via an AccountEvent.LOGIN_RESULT event triggered by the AccountManager.
If the attempt succeeds, the AccountManager and the UserAccount object for the current client (i.e., reactor.self().getAccount()) trigger an AccountEvent.LOGIN event, and the account's persistent attributes are automatically loaded. If the specified userID is already logged in under another client ID, the previous client is logged off and disconnected before the new login proceeds.
Room-scoped persistent account attributes are automatically loaded when the current client joins or observes rooms. If the current client is already in or observing a room when it logs in, the room-scoped attributes for that room are also loaded at login time.
The login() method cannot be used to login foreign clients; it applies to the current client only.
Parameters
userID:String — The account's userID.
| |
password:String — The account's password.
|
See also
The following code logs in the current client using the userID "ken" and the password "abc":
reactor.getAccountManager().login("ken", "abc");
To determine the result of the preceding login attempt, the following code registers with for the AccountEvent.LOGIN_RESULT event:
// Register for the event reactor.getAccountManager().addEventListener(AccountEvent.LOGIN_RESULT, loginResultListener); // Provide an event listener protected function loginResultListener (e:AccountEvent):void { trace("Login result for [" + e.getUserID() + "]: " + e.getStatus()); }
logoff | () | method |
public function logoff(userID:String = null, password:String = null):void
Since : | Reactor 1.0.0 |
Logs off a user account. The result of the logoff attempt is returned via an AccountEvent.LOGOFF_RESULT event, which is dispatched both via the AccountManager and also by the UserAccount object for the client being logged off. If no such user account is known, the event is dispatched via the AccountManager only.
Unlike login(), the logoff() method can be used with foreign clients. However, in order to logoff a foreign client, the client requesting the logoff must have sufficient privileges.
Parameters
userID:String (default = null ) — The account's userID.
| |
password:String (default = null ) — The account's password.
|
See also
observeAccount | () | method |
public function observeAccount(userID:String):void
Since : | Reactor 1.0.0 |
Asks the server to register the current client as an observer of the user account specified by userID. If the request succeeds, Reactor creates a UserAccount object for the account (if one does not already exist) and dispatches an AccountEvent.OBSERVE_RESULT through that object and through the AccountManager. The UserAccount object is also synchronized with the server-side state of the account, causing the UserAccount to trigger an AccountEvent.SYNCHRONIZE event. Subsequently if the specified user account's state changes, the current client is notified in the following ways:
To stop observing a user account, use UserAccount's stopObserving() method.
Account observation is used when a client wishes to stay informed of the state of an arbitrary list of user accounts, as is required by applications with buddy-list systems or account administration features.
Parameters
userID:String — The userID of the account to observe.
|
See also
removeAccount | () | method |
public function removeAccount(userID:String, password:String = null):void
Since : | Reactor 1.0.0 |
Removes an existing user account. The result of the account-removal attempt is returned via an AccountManagerEvent.REMOVE_ACCOUNT_RESULT event. If a user account is removed while a client is logged in as that user, that client receives an AccountEvent.LOGOFF event and is then automatically disconnected by the server.
Parameters
userID:String | |
password:String (default = null )
|
See also
removeRole | () | method |
public function removeRole(userID:String, role:String):void
Since : | Reactor 1.0.0 |
Removes a security role from a user account. The result of the remove-role attempt is returned via an AccountEvent.REMOVE_ROLE_RESULT event, which is dispatched both via the AccountManager and also via the UserAccount object for which the role-removal was requested. If no such account is known, the event is dispatched via the AccountManager only.
User-account roles can also be removed via the UserAccount class's removeRole() method.
Parameters
userID:String — The account's userID.
| |
role:String — The desired new role.
|
See also
The following code changes removes the SecurityRole.MODERATOR role from the account with the userID "tom".
reactor.getAccountManager().removeRole("tom", SecurityRole.MODERATOR);
To determine the result of the preceding role-removal attempt, the following code registers for the AccountEvent.REMOVE_ROLE_RESULT event:
// Register for the event reactor.getAccountManager().addEventListener( AccountEvent.REMOVE_ROLE_RESULT, removeRoleResultListener); // Provide an event listener protected function removeRoleResultListener (e:AccountEvent):void { trace("Remove role result for user [" + e.getUserID() + "], " + "role [" + e.getUserID() + "]: " + e.getStatus()); }
selfAccount | () | method |
public function selfAccount():UserAccount
Since : | Reactor 1.0.0 |
Returns a reference to the current client's user account, if the current client is logged in. If the current client is not logged in, returns null.
ReturnsUserAccount |
stopWatchingForAccounts | () | method |
public function stopWatchingForAccounts():void
Since : | Reactor 1.0.0 |
Asks the server to stop watching for accounts. In response, the server no longer sends notifications when an account is added or removed. The result of a stopWatchingForAccounts() request is returned via AccountManagerEvent.STOP_WATCHING_FOR_ACCOUNTS_RESULT.
See also
watchForAccounts | () | method |
public function watchForAccounts():void
Since : | Reactor 1.0.0 |
Asks the server to send a list of user accounts on the server, and then send notification any time a user account is created or removed. The notifications trigger either a AccountManagerEvent.ACCOUNT_ADDED event or an AccountManagerEvent.ACCOUNT_REMOVED event. The result of a watchForAccounts() request is returned via AccountManagerEvent.WATCH_FOR_ACCOUNTS_RESULT.
The watchForAccounts() method is used in administration applications that wish to display a synchronized list of all user accounts on the server.
See also
ACCOUNT_ADDED | Event |
AccountManagerEvent
net.user1.reactor.AccountManagerEvent.ACCOUNT_ADDED
Dispatched when the AccountManager is informed by Union Server that a user account was created. This event is available when the AccountManager is watching for user accounts only (see watchForAccounts()).
See also
ACCOUNT_REMOVED | Event |
AccountManagerEvent
net.user1.reactor.AccountManagerEvent.ACCOUNT_REMOVED
Dispatched when the AccountManager is informed by Union Server that a user account was deleted. This event is available when the AccountManager is watching for user accounts only (see watchForAccounts()).
See also
ADD_ROLE_RESULT | Event |
AccountEvent
net.user1.reactor.AccountEvent.ADD_ROLE_RESULT
Dispatched when the result of an earlier UserAccount.addRole() or AccountManager.addRole() request is received.
See also
CHANGE_PASSWORD | Event |
AccountEvent
net.user1.reactor.AccountEvent.CHANGE_PASSWORD
Dispatched when the current client's account password changes. A user can change its own password via the AccountManager's changePassword() method or the UserAccount object's changePassword() method. With sufficient privileges, the current client can change another user's password. Server-side code can change any user's password.
See also
CHANGE_PASSWORD_RESULT | Event |
AccountEvent
net.user1.reactor.AccountEvent.CHANGE_PASSWORD_RESULT
Dispatched when the current client receives the result of an earlier request to change a user account's password. To determine the result of the change-password request, use getStatus(), which has the following possible return values:
See also
CREATE_ACCOUNT_RESULT | Event |
AccountManagerEvent
net.user1.reactor.AccountManagerEvent.CREATE_ACCOUNT_RESULT
Dispatched when the result of an earlier call to AccountManager's createAccount() method is received. To determine the result of the account-creation request, use getStatus(), which has the following possible return values:
See also
LOGIN | Event |
AccountEvent
net.user1.reactor.AccountEvent.LOGIN
Dispatched when any client that is known to the current client logs in. For a list of the situations in which a client becomes known to the current client, see the ClientManager's clientIsKnown() method. Note however, that the current client can opt out of login notification for room occupants and room observers by disabling "occupant-login-logoff updates" and "observer-login-logoff updates" via the Room class's setUpdateLevels() method.
The AccountEvent.LOGIN event is dispatched via the Client object for the client that logged in, then the UserAccount object for the logged-in account, then the AccountManager.
See also
LOGIN_RESULT | Event |
AccountEvent
net.user1.reactor.AccountEvent.LOGIN_RESULT
Dispatched when the result of an earlier login request by the current client is received. To determine the result of the login request, use getStatus(), which has the following possible return values:
See also
LOGOFF | Event |
AccountEvent
net.user1.reactor.AccountEvent.LOGOFF
Dispatched when any user account that is known to the current client logs off. For a list of the situations in which a client becomes known to the current client, see the ClientManager's clientIsKnown() method. Note however, that the current client can opt out of logoff notification for room occupants and room observers by disabling "occupant-login-logoff updates" and "observer-login-logoff updates" via the Room class's setUpdateLevels() method.
The AccountEvent.LOGOFF event is dispatched via the Client object for the client that logged off, then the UserAccount object for the logged-off account, then the AccountManager.
See also
LOGOFF_RESULT | Event |
AccountEvent
net.user1.reactor.AccountEvent.LOGOFF_RESULT
Dispatched when the current client receives the result of an earlier request to logoff a client. To determine the result of the logoff request, use getStatus(), which has the following possible return values:
See also
OBSERVE | Event |
AccountEvent
net.user1.reactor.AccountEvent.OBSERVE
Dispatched when the current client observes a user account. For complete details, see the AccountManager's observeAccount() method.
See also
OBSERVE_RESULT | Event |
AccountEvent
net.user1.reactor.AccountEvent.OBSERVE_RESULT
Dispatched when the result of an earlier UserAccount.observe() or AccountManager.observeAccount() request is received.
See also
REMOVE_ACCOUNT_RESULT | Event |
AccountManagerEvent
net.user1.reactor.AccountManagerEvent.REMOVE_ACCOUNT_RESULT
Dispatched when the result of an earlier call to AccountManager's removeAccount() method is received. To determine the result of the account-removal request, use getStatus(), which has the following possible return values:
See also
REMOVE_ROLE_RESULT | Event |
AccountEvent
net.user1.reactor.AccountEvent.REMOVE_ROLE_RESULT
Dispatched when the result of an earlier UserAccount.removeRole() or AccountManager.removeRole() request is received.
See also
STOP_OBSERVING | Event |
AccountEvent
net.user1.reactor.AccountEvent.STOP_OBSERVING
Dispatched when the current client stops observing a user account.
See also
STOP_OBSERVING_RESULT | Event |
AccountEvent
net.user1.reactor.AccountEvent.STOP_OBSERVING_RESULT
Dispatched when the result of an earlier UserAccount.stopObserving() or AccountManager.stopObservingAccount() request is received.
See also
STOP_WATCHING_FOR_ACCOUNTS_RESULT | Event |
AccountManagerEvent
net.user1.reactor.AccountManagerEvent.STOP_WATCHING_FOR_ACCOUNTS_RESULT
Dispatched when the AccountManager receives the result of an earlier stopWatchingForAccounts() request. To determine the result of the attempt, use getStatus(), which has the following possible return values:
See also
SYNCHRONIZE | Event |
AccountManagerEvent
net.user1.reactor.AccountManagerEvent.SYNCHRONIZE
Dispatched when the AccountManager's list of user accounts has finished synchronization after a watchForAccounts() request.
See also
WATCH_FOR_ACCOUNTS_RESULT | Event |
AccountManagerEvent
net.user1.reactor.AccountManagerEvent.WATCH_FOR_ACCOUNTS_RESULT
Dispatched when the AccountManager receives the result of an earlier watchForAccounts() request. To determine the result of the request, use getStatus(), which has the following possible return values:
See also