public final class ZoomSDK
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticationListener(ZoomSDKAuthenticationListener listener)
Register a listener for the callback events of user authentication.
|
void |
addNetworkConnectionListener(NetworkConnectionListener listener)
Register a listener to receive the NetworkConnectionHandler.
|
AccountService |
getAccountService()
Get account service instance.
|
java.lang.String |
getDomain()
Get current domain.
|
InMeetingService |
getInMeetingService()
Get InMeetingService instance.
|
static ZoomSDK |
getInstance()
Get a shared instance of ZOOM SDK.
|
MeetingService |
getMeetingService()
Get the instance of meeting service.
|
MeetingSettingsHelper |
getMeetingSettingsHelper()
Get MeetingSettingsHelper instance.
|
java.lang.String |
getPreferenceKeyIsAppVerified() |
java.lang.String |
getPreferenceKeyLastVerifiedAppKey() |
java.lang.String |
getPreferenceKeyLastVerifiedAppSecret() |
java.lang.String |
getPreferenceKeyLastVerifiedJwtToken() |
PreMeetingService |
getPreMeetingService()
Get preMeetingService instance.
|
java.util.Locale |
getSdkLocale(android.content.Context context)
Get current ZOOM SDK locale configuration.
|
SmsService |
getSmsService()
Get Sms Service for real name auth for chinese user.
|
java.lang.String |
getVersion(android.content.Context context)
Get ZOOM SDK version on Android.
|
ZoomSDKVideoSourceHelper |
getVideoSourceHelper()
Get video source helper
|
ZoomUIService |
getZoomUIService()
Get ZoomUIService instance.
|
boolean |
hasRawDataLicense()
Query is has raw data license.
|
void |
initialize(android.content.Context context,
java.lang.String appKey,
java.lang.String appSecret,
boolean autoRetryVerifyApp,
ZoomSDKInitializeListener listener)
Deprecated.
|
void |
initialize(android.content.Context context,
java.lang.String appKey,
java.lang.String appSecret,
java.lang.String domain,
boolean autoRetryVerifyApp,
ZoomSDKInitializeListener listener)
Deprecated.
|
void |
initialize(android.content.Context context,
java.lang.String appKey,
java.lang.String appSecret,
java.lang.String domain,
boolean autoRetryVerifyApp,
ZoomSDKInitializeListener listener,
boolean enableLog)
Deprecated.
|
void |
initialize(android.content.Context context,
java.lang.String appKey,
java.lang.String appSecret,
java.lang.String domain,
boolean autoRetryVerifyApp,
ZoomSDKInitializeListener listener,
boolean enableLog,
int logSize)
Deprecated.
|
void |
initialize(android.content.Context context,
java.lang.String appKey,
java.lang.String appSecret,
java.lang.String domain,
ZoomSDKInitializeListener listener)
Deprecated.
|
void |
initialize(android.content.Context context,
java.lang.String appKey,
java.lang.String appSecret,
java.lang.String domain,
ZoomSDKInitializeListener listener,
boolean enableLog)
Deprecated.
|
void |
initialize(android.content.Context context,
java.lang.String appKey,
java.lang.String appSecret,
java.lang.String domain,
ZoomSDKInitializeListener listener,
boolean enableLog,
int logSize)
Deprecated.
|
void |
initialize(android.content.Context context,
java.lang.String appKey,
java.lang.String appSecret,
ZoomSDKInitializeListener listener)
Deprecated.
|
void |
initialize(android.content.Context context,
ZoomSDKInitializeListener listener,
ZoomSDKInitParams params) |
boolean |
isDeviceSupported(android.content.Context context)
Query if the current device is able to run SDK.
|
boolean |
isEmailLoginEnable()
Query is email login enable
|
boolean |
isInitialized()
Query if ZOOM SDK has been initialized.
|
boolean |
isLoggedIn()
Query if ZOOM user has logged in.
|
int |
loginWithSSOToken(java.lang.String ssoToken)
Login ZOOM SDK with SSO token.
|
int |
loginWithZoom(java.lang.String email,
java.lang.String password)
Login ZOOM SDK with working email.
|
boolean |
logoutZoom()
Logout ZOOM SDK.
|
void |
removeAuthenticationListener(ZoomSDKAuthenticationListener listener)
Unregister the listener for the callback events of user authentication.
|
void |
removeNetworkConnectionListener(NetworkConnectionListener listener)
Unregister a listener for the callback event of user authentication.
|
void |
setDomain(java.lang.String domain)
Set a new web domain name.
|
void |
setSdkLocale(android.content.Context context,
java.util.Locale locale)
Configure ZOOM SDK locale.
|
void |
setShowProxyServerDialogImmediatelyIfNeeded(boolean show)
Set if display immediately the setting dialog of proxy server.
|
boolean |
switchDomain(java.lang.String newDomain,
boolean force)
Call the method to switch sdk domain.
|
int |
tryAutoLoginZoom()
Login ZOOM SDK automatically with local ZOOM/SSO token once you have logged in successfully.
|
public static ZoomSDK getInstance()
public boolean hasRawDataLicense()
public ZoomSDKVideoSourceHelper getVideoSourceHelper()
public void addAuthenticationListener(ZoomSDKAuthenticationListener listener)
listener
- The listener instance.public void removeAuthenticationListener(ZoomSDKAuthenticationListener listener)
listener
- The listener instance.public void addNetworkConnectionListener(NetworkConnectionListener listener)
listener
- The listener instancepublic void removeNetworkConnectionListener(NetworkConnectionListener listener)
listener
- The listener instance.@Deprecated public void initialize(android.content.Context context, java.lang.String appKey, java.lang.String appSecret, ZoomSDKInitializeListener listener)
Deprecated, use initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams)
instead.
context
- Android context.appKey
- APP Key got from zoom.us.appSecret
- APP secret got from zoom.us.listener
- Listener for the initialization result.@Deprecated public void initialize(android.content.Context context, java.lang.String appKey, java.lang.String appSecret, boolean autoRetryVerifyApp, ZoomSDKInitializeListener listener)
initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams)
instead.context
- Android contextappKey
- APP Key got from zoom.us.appSecret
- APP secret got from zoom.us.autoRetryVerifyApp
- If it is TRUE, ZOOM SDK will retry to call verifyApp automatically.listener
- Listener for the result of initialization.@Deprecated public void initialize(android.content.Context context, java.lang.String appKey, java.lang.String appSecret, java.lang.String domain, ZoomSDKInitializeListener listener)
initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams)
instead.context
- Android context.appKey
- APP Key got from zoom.us.appSecret
- APP secret got from zoom.us.domain
- ZOOM domain name. Default value: zoom.uslistener
- Listener for the result of initialization.@Deprecated public void initialize(android.content.Context context, java.lang.String appKey, java.lang.String appSecret, java.lang.String domain, ZoomSDKInitializeListener listener, boolean enableLog)
initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams)
instead.context
- Android contextappKey
- APP Key got from zoom.us.appSecret
- APP secret got from zoom.us.domain
- ZOOM domain name. Default value: zoom.uslistener
- Listener for the result of initialization.enableLog
- Enable/Disable the default debug log.@Deprecated public void initialize(android.content.Context context, java.lang.String appKey, java.lang.String appSecret, java.lang.String domain, ZoomSDKInitializeListener listener, boolean enableLog, int logSize)
initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams)
instead.context
- Android contextappKey
- APP Key got from zoom.us.appSecret
- APP secret got from zoom.us.domain
- ZOOM domain name. Default value: zoom.uslistener
- Listener for the result of initialization.enableLog
- Enable/Disable the default debug log.logSize
- Log File Size.@Deprecated public void initialize(android.content.Context context, java.lang.String appKey, java.lang.String appSecret, java.lang.String domain, boolean autoRetryVerifyApp, ZoomSDKInitializeListener listener)
initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams)
instead.context
- Android contextappKey
- APP Key got from zoom.us.appSecret
- APP secret got from zoom.us.domain
- ZOOM domain name. Default value: zoom.usautoRetryVerifyApp
- If it is TRUE, Zoom SDK will retry to call verifyApp automatically. Otherwise user needs to call verifyApp manually once initialize failed.listener
- Listener for the result of initialization.@Deprecated public void initialize(android.content.Context context, java.lang.String appKey, java.lang.String appSecret, java.lang.String domain, boolean autoRetryVerifyApp, ZoomSDKInitializeListener listener, boolean enableLog)
initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams)
instead.context
- Android contextappKey
- APP Key got from zoom.us.appSecret
- APP secret got from zoom.us.domain
- ZOOM domain name. Default value: zoom.usautoRetryVerifyApp
- If it is TRUE, Zoom SDK will retry to call verifyApp automatically. Otherwise user needs to call verifyApp manually once initialize failed.listener
- Listener for initialization result.enableLog
- Enable/Disable the default debug log.@Deprecated public void initialize(android.content.Context context, java.lang.String appKey, java.lang.String appSecret, java.lang.String domain, boolean autoRetryVerifyApp, ZoomSDKInitializeListener listener, boolean enableLog, int logSize)
initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams)
instead.context
- Android contextappKey
- APP Key got from zoom.us.appSecret
- APP secret got from zoom.us.domain
- ZOOM domain name. Default value: zoom.usautoRetryVerifyApp
- If it is TRUE, Zoom SDK will retry to call verifyApp automatically. Otherwise user needs to call verifyApp manually once initialize failed.listener
- Listener for initialization result.enableLog
- Enable/Disable the default debug log.logSize
- Log File Size. 1-50Mpublic void initialize(android.content.Context context, ZoomSDKInitializeListener listener, ZoomSDKInitParams params)
context
- Android contextlistener
- Listener for initialization result.params
- initparams ZoomSDKInitParams
. you can use jwtToken or (appKey and appSecret) to initializepublic boolean switchDomain(java.lang.String newDomain, boolean force)
newDomain
- The new domain.force
- true:force switchpublic java.lang.String getVersion(android.content.Context context)
context
- See Context
public boolean isDeviceSupported(android.content.Context context)
context
- See Context
public boolean isInitialized()
public int loginWithZoom(java.lang.String email, java.lang.String password)
email
- The email to login.password
- Login password.ZoomApiError
.public int loginWithSSOToken(java.lang.String ssoToken)
ssoToken
- SSO token.ZoomApiError
.public boolean logoutZoom()
public boolean isLoggedIn()
public int tryAutoLoginZoom()
ZoomApiError
.public void setDomain(java.lang.String domain)
domain
- Domain name to be set. Default value: zoom.us.public java.lang.String getDomain()
public void setSdkLocale(android.content.Context context, java.util.Locale locale)
context
- Android context.locale
- The language item of the locale object can not be null.public java.util.Locale getSdkLocale(android.content.Context context)
context
- Android context.public void setShowProxyServerDialogImmediatelyIfNeeded(boolean show)
show
- TRUE means to show proxy server dialog when needed. FALSE not.public boolean isEmailLoginEnable()
public MeetingService getMeetingService()
public SmsService getSmsService()
SmsService
public AccountService getAccountService()
public PreMeetingService getPreMeetingService()
public InMeetingService getInMeetingService()
public ZoomUIService getZoomUIService()
public MeetingSettingsHelper getMeetingSettingsHelper()
public java.lang.String getPreferenceKeyLastVerifiedAppSecret()
public java.lang.String getPreferenceKeyLastVerifiedAppKey()
public java.lang.String getPreferenceKeyLastVerifiedJwtToken()
public java.lang.String getPreferenceKeyIsAppVerified()