Package us.zoom.sdk
Class ZoomSDK
java.lang.Object
us.zoom.sdk.ZoomSDK
ZOOM SDK global manager.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Register a listener for the callback events of user authentication.void
Register a listener to receive the NetworkConnectionHandler.void
enableAutoRegisterNotificationServiceForLogin
(boolean enable) Enable or disable auto register notification service.generateSSOLoginURL
(String ssoDomainPrefix) Get SSO login url By the domain prefixGet 3D avatar settings interface.Deprecated.Get current domain.Get InMeetingService instance.static ZoomSDK
Get a shared instance of ZOOM SDK, must call from the main thread.Get the instance of meeting service.Get MeetingSettingsHelper instance.Get notification service helper interface.Get preMeetingService instance.Get Reminder Helper interface;getSdkLocale
(android.content.Context context) Get current ZOOM SDK locale configuration.Get share source helperGet Sms Service for real name auth for chinese user.getVersion
(android.content.Context context) Get ZOOM SDK version on Android.Get video source helperGet ZoomUIService instance.boolean
handleSSOLoginURIProtocol
(String uriProtocol) Login with the SSO login uri, link zoommtg://*boolean
Query is has raw data license, must call from the main thread.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
Query if ZOOM SDK has been initialized, must call from main thread.boolean
Query if ZOOM user has logged in.boolean
Logout ZOOM SDK.registerNotificationService
(String accessToken) Register notification service.void
Unregister the listener for the callback events of user authentication.void
Unregister a listener for the callback event of user authentication.boolean
Set a new web domain name, must call from main thread.void
setSdkLocale
(android.content.Context context, Locale locale) Configure ZOOM SDK locale.void
setShowProxyServerDialogImmediatelyIfNeeded
(boolean show) Set if display immediately the setting dialog of proxy server.boolean
switchDomain
(String newDomain, boolean force) Call the method to switch sdk domain.int
Login ZOOM SDK automatically with local ZOOM/SSO token once you have logged in successfully.void
uninitialize Zoom SDKUnregister notification service.
-
Method Details
-
getInstance
Get a shared instance of ZOOM SDK, must call from the main thread.- Returns:
- The ZOOM SDK instance.
-
hasRawDataLicense
public boolean hasRawDataLicense()Query is has raw data license, must call from the main thread.- Returns:
- raw data license
-
getVideoSourceHelper
Get video source helper- Returns:
- video source helper
-
addAuthenticationListener
Register a listener for the callback events of user authentication.- Parameters:
listener
- The listener instance.
-
removeAuthenticationListener
Unregister the listener for the callback events of user authentication.- Parameters:
listener
- The listener instance.
-
addNetworkConnectionListener
Register a listener to receive the NetworkConnectionHandler.- Parameters:
listener
- The listener instance
-
removeNetworkConnectionListener
Unregister a listener for the callback event of user authentication.- Parameters:
listener
- The listener instance.
-
initialize
public void initialize(android.content.Context context, ZoomSDKInitializeListener listener, ZoomSDKInitParams params) - Parameters:
context
- Android contextlistener
- Listener for initialization result.params
- init paramsZoomSDKInitParams
. you can use jwtToken to initialize
-
uninitialize
public void uninitialize()uninitialize Zoom SDK -
switchDomain
Call the method to switch sdk domain.- Parameters:
newDomain
- The new domain.force
- true:force switch- Returns:
- true indicates successfully. Otherwise not.
-
getVersion
Get ZOOM SDK version on Android.- Parameters:
context
- SeeContext
- Returns:
- ZOOM SDK version
-
isDeviceSupported
public boolean isDeviceSupported(android.content.Context context) Query if the current device is able to run SDK.- Parameters:
context
- SeeContext
- Returns:
- TRUE means able, otherwise not.
-
isInitialized
public boolean isInitialized()Query if ZOOM SDK has been initialized, must call from main thread.- Returns:
- TRUE means initialized. Otherwise not.
-
generateSSOLoginURL
Get SSO login url By the domain prefix- Parameters:
ssoDomainPrefix
- The domain prefix- Returns:
- result the SSO login url, null for error
-
handleSSOLoginURIProtocol
Login with the SSO login uri, link zoommtg://*- Parameters:
uriProtocol
- the sso login url, link zoommtg://*- Returns:
- true for success, false for fail
-
logoutZoom
public boolean logoutZoom()Logout ZOOM SDK. *Note* This function is optional, ignore it if you do not have the account of working email/SSO in ZOOM.- Returns:
- TRUE means that the user can logout. Otherwise not.
-
isLoggedIn
public boolean isLoggedIn()Query if ZOOM user has logged in. *Note* This function is optional, ignore it if you do not have the account of working email in ZOOM.- Returns:
- TRUE means that the user has logged in. Otherwise not.
-
tryAutoLoginZoom
public int tryAutoLoginZoom()Login ZOOM SDK automatically with local ZOOM/SSO token once you have logged in successfully. *Note* This function is optional, ignore it if you do not have the account of working email/SSO account in ZOOM.- Returns:
- Login ZOOM successfully or not. See
ZoomApiError
.
-
setDomain
Set a new web domain name, must call from main thread.- Parameters:
domain
- Domain name to be set. Default value: zoom.us.- Returns:
- true means success, false means fail for not support domain.
-
getDomain
Get current domain.- Returns:
- current The current domain.
-
setSdkLocale
Configure ZOOM SDK locale.- Parameters:
context
- Android context.locale
- The language item of the locale object can not be null.
-
getSdkLocale
Get current ZOOM SDK locale configuration.- Parameters:
context
- Android context.- Returns:
- Current ZOOM SDK locale configuration.
-
setShowProxyServerDialogImmediatelyIfNeeded
public void setShowProxyServerDialogImmediatelyIfNeeded(boolean show) Set if display immediately the setting dialog of proxy server.- Parameters:
show
- TRUE means to show proxy server dialog when needed. FALSE not.
-
getMeetingService
Get the instance of meeting service.- Returns:
- The shared instance of MeetingService. Return null if the SDK has not been initialized successfully.
-
getSmsService
Get Sms Service for real name auth for chinese user.- Returns:
- SmsService
SmsService
-
getAccountService
Deprecated.Get account service instance.- Returns:
- The shared instance of account service. It will return null if the SDK has not been initialized successfully or the user didn't login.
-
getPreMeetingService
Get preMeetingService instance.- Returns:
- The shared instance of PreMeetingService. It will return null if the SDK has not been initialized successfully or the user didn't login.
-
getInMeetingService
Get InMeetingService instance.- Returns:
- The shared instance of InMeetingService. It will return null if the SDK has not been initialized successfully.
-
getZoomUIService
Get ZoomUIService instance.- Returns:
- The shared instance of ZoomUIService. It will return null if the SDK has not been initialized successfully.
-
getMeetingSettingsHelper
Get MeetingSettingsHelper instance.- Returns:
- The shared instance of MeetingSettingsHelper. It will return null if the SDK has not been initialized successfully.
-
get3DAvatarSettings
Get 3D avatar settings interface.- Returns:
- The shared instance of
I3DAvatarSettingContext
. It will return null if the SDK has not been initialized successfully.
-
getReminderHelper
Get Reminder Helper interface;- Returns:
- The shared instance of
IReminderHelper
. If the SDK has’t been successfully initialized, it returns null.
-
getNotificationServiceHelper
Get notification service helper interface.- Returns:
- The shared instance of
INotificationServiceHelper
-
enableAutoRegisterNotificationServiceForLogin
public void enableAutoRegisterNotificationServiceForLogin(boolean enable) Enable or disable auto register notification service. This is enabled by default.- Parameters:
enable
- true means enabled, otherwise not.
-
registerNotificationService
Register notification service.- Parameters:
accessToken
- Initialize parameter of notification service.- Returns:
- If the function succeeds, the return value is
MobileRTCSDKError.SDKERR_SUCCESS
.
-
unregisterNotificationService
Unregister notification service.- Returns:
- If the function succeeds, the return value is
MobileRTCSDKError.SDKERR_SUCCESS
.
-