com.supermap.realspace
Class OLAccountManager
- java.lang.Object
-
- com.supermap.realspace.OLAccountManager
-
public class OLAccountManager extends java.lang.ObjectSuperMap Online account manager class.
-
-
Constructor Summary
Constructors Constructor and Description OLAccountManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OLAccountManagergetInstance(android.content.Context context)Get instance of SuperMap Online.java.lang.StringgetNickname()Get the user's nickname in the login success callback event.java.util.ArrayList<java.lang.String>getPrivateServiceList()Get the list of urls for the private service in the login success callback event.java.util.ArrayList<java.lang.String>getPrivateServiceNameList()Get the list of name for the private service in the login success callback event.java.util.ArrayList<java.lang.String>getpublicServiceList()Get the list of urls for the public service in the login success callback event.java.util.ArrayList<java.lang.String>getpublicServiceNameList()Get the list of name for the public service in the login success callback event.java.lang.StringgetUserName()Get account registration email in the login success callback event.static voidloginWithUsernameComplete(java.lang.String userName, java.lang.String passwd, LoginCallBackListenner listenner)SuperMap Online login callback event.voidlogout()Write off SuperMap Online.voidpublicServiceWithCompletion(LoginCallBackListenner listener)Public service callback event.
-
-
-
Method Detail
-
getInstance
public static OLAccountManager getInstance(android.content.Context context)
Get instance of SuperMap Online.- Parameters:
context- context.- Returns:
- instance of SuperMap Online.
-
loginWithUsernameComplete
public static void loginWithUsernameComplete(java.lang.String userName, java.lang.String passwd, LoginCallBackListenner listenner)SuperMap Online login callback event.- Parameters:
userName- specify login account.passwd- specify password.listenner- specify login listener.
-
logout
public void logout()
Write off SuperMap Online.
-
publicServiceWithCompletion
public void publicServiceWithCompletion(LoginCallBackListenner listener)
Public service callback event.- Parameters:
listener- callback listener
-
getPrivateServiceList
public java.util.ArrayList<java.lang.String> getPrivateServiceList()
Get the list of urls for the private service in the login success callback event.- Returns:
- List of urls for private services.
-
getpublicServiceList
public java.util.ArrayList<java.lang.String> getpublicServiceList()
Get the list of urls for the public service in the login success callback event.- Returns:
- List of urls for public services.
-
getpublicServiceNameList
public java.util.ArrayList<java.lang.String> getpublicServiceNameList()
Get the list of name for the public service in the login success callback event.- Returns:
- List of name for public services.
-
getPrivateServiceNameList
public java.util.ArrayList<java.lang.String> getPrivateServiceNameList()
Get the list of name for the private service in the login success callback event.- Returns:
- List of name for private services.
-
getNickname
public java.lang.String getNickname()
Get the user's nickname in the login success callback event.- Returns:
- use name.
-
getUserName
public java.lang.String getUserName()
Get account registration email in the login success callback event.- Returns:
- account registration email.
-
-