Meeting SDK for Android API Reference
Loading...
Searching...
No Matches
us.zoom.sdk.ZoomSDK Class Reference

Zoom SDK global manager. More...

Public Member Functions

boolean hasRawDataLicense ()
 Determines whether the SDK has a raw data license. Must call from the main thread.
ZoomSDKVideoSourceHelper getVideoSourceHelper ()
 Gets the video source helper.
ZoomSDKShareSourceHelper getShareSourceHelper ()
 Gets the share source helper.
void addAuthenticationListener (ZoomSDKAuthenticationListener listener)
 Registers a listener for the callback events of user authentication.
void removeAuthenticationListener (ZoomSDKAuthenticationListener listener)
 Unregisters the listener for the callback events of user authentication.
void addNetworkConnectionListener (NetworkConnectionListener listener)
 Registers a listener to receive the NetworkConnectionHandler.
void removeNetworkConnectionListener (NetworkConnectionListener listener)
 Unregisters the listener for network connection events.
void initialize (Context context, ZoomSDKInitializeListener listener, ZoomSDKInitParams params)
 Initializes Zoom SDK.
void uninitialize ()
 Uninitializes Zoom SDK.
boolean switchDomain (String newDomain, boolean force)
 Switches the SDK domain.
String getVersion (Context context)
 Gets the Zoom SDK version on Android.
boolean isDeviceSupported (Context context)
 Determines whether the current device is able to run the SDK.
boolean isInitialized ()
 Determines whether Zoom SDK has been initialized. Must call from the main thread.
String generateSSOLoginURL (String ssoDomainPrefix)
 Gets the SSO login URL by the domain prefix.
boolean handleSSOLoginURIProtocol (String uriProtocol)
 Logs in with the SSO login URI, link zoommtg://*.
boolean logoutZoom ()
 Logs out Zoom SDK.
boolean isLoggedIn ()
 Determines whether the Zoom user has logged in.
int tryAutoLoginZoom ()
 Logs in Zoom SDK automatically with local Zoom or SSO token once you have logged in successfully.
boolean setDomain (String domain)
 Sets a new web domain name. Must call from the main thread.
String getDomain ()
 Gets the current domain.
void setSdkLocale (Context context, Locale locale)
 Configures Zoom SDK locale.
Locale getSdkLocale (Context context)
 Gets the current Zoom SDK locale configuration.
void setShowProxyServerDialogImmediatelyIfNeeded (boolean show)
 Sets whether to display the setting dialog of proxy server immediately when needed.
MeetingService getMeetingService ()
 Gets the instance of meeting service.
SmsService getSmsService ()
 Gets SMS service for real name authentication for Chinese users.
AccountService getAccountService ()
 Gets the account service instance.
PreMeetingService getPreMeetingService ()
 Gets the pre-meeting service instance.
InMeetingService getInMeetingService ()
 Gets the in-meeting service instance.
ZoomUIService getZoomUIService ()
 Gets the Zoom UI service instance.
MeetingSettingsHelper getMeetingSettingsHelper ()
 Gets the meeting settings helper instance.
I3DAvatarSettingContext get3DAvatarSettings ()
 Gets the 3D avatar settings interface.
IReminderHelper getReminderHelper ()
 Gets the reminder helper interface.
INotificationServiceHelper getNotificationServiceHelper ()
 Gets the notification service helper interface.
void enableAutoRegisterNotificationServiceForLogin (boolean enable)
 Enables or disables auto-register notification service. This is enabled by default.
MobileRTCSDKError registerNotificationService (String accessToken)
 Registers notification service.
MobileRTCSDKError unregisterNotificationService ()
 Unregisters notification service.

Static Public Member Functions

static ZoomSDK getInstance ()
 Gets a shared instance of Zoom SDK. Must call from the main thread.

Private Member Functions

 ZoomSDK ()

Private Attributes

final ZoomSDKImpl mZoomSDKImpl

Static Private Attributes

static volatile ZoomSDK instance

Detailed Description

Zoom SDK global manager.

Definition at line 12 of file ZoomSDK.java.

Constructor & Destructor Documentation

◆ ZoomSDK()

us.zoom.sdk.ZoomSDK.ZoomSDK ( )
inlineprivate

Definition at line 16 of file ZoomSDK.java.

16 {
17 mZoomSDKImpl = ZoomSDKImpl.getInstance();
18 }

References mZoomSDKImpl.

Referenced by getInstance().

Member Function Documentation

◆ addAuthenticationListener()

void us.zoom.sdk.ZoomSDK.addAuthenticationListener ( ZoomSDKAuthenticationListener listener)
inline

Registers a listener for the callback events of user authentication.

Parameters
listenerThe listener instance.

Definition at line 68 of file ZoomSDK.java.

68 {
69 mZoomSDKImpl.addAuthenticationListener(listener);
70 }

References mZoomSDKImpl.

◆ addNetworkConnectionListener()

void us.zoom.sdk.ZoomSDK.addNetworkConnectionListener ( NetworkConnectionListener listener)
inline

Registers a listener to receive the NetworkConnectionHandler.

Parameters
listenerThe listener instance.

Definition at line 86 of file ZoomSDK.java.

86 {
87 mZoomSDKImpl.addNetworkConnectionListener(listener);
88 }

References mZoomSDKImpl.

◆ enableAutoRegisterNotificationServiceForLogin()

void us.zoom.sdk.ZoomSDK.enableAutoRegisterNotificationServiceForLogin ( boolean enable)
inline

Enables or disables auto-register notification service. This is enabled by default.

Parameters
enabletrue to enable, false otherwise.

Definition at line 359 of file ZoomSDK.java.

359 {
360 mZoomSDKImpl.enableAutoRegisterNotificationServiceForLogin(enable);
361 }

References mZoomSDKImpl.

◆ generateSSOLoginURL()

String us.zoom.sdk.ZoomSDK.generateSSOLoginURL ( String ssoDomainPrefix)
inline

Gets the SSO login URL by the domain prefix.

Parameters
ssoDomainPrefixThe domain prefix.
Returns
If the function succeeds, it returns the SSO login URL. Otherwise, this function fails and returns null.

Definition at line 163 of file ZoomSDK.java.

163 {
164 return mZoomSDKImpl.generateSSOLoginURL(ssoDomainPrefix);
165 }

References mZoomSDKImpl.

◆ get3DAvatarSettings()

I3DAvatarSettingContext us.zoom.sdk.ZoomSDK.get3DAvatarSettings ( )
inline

Gets the 3D avatar settings interface.

Returns
If the function succeeds, it returns the shared instance of I3DAvatarSettingContext. Otherwise, this function fails and returns null if the SDK has not been initialized successfully.

Definition at line 332 of file ZoomSDK.java.

332 {
333 return mZoomSDKImpl.get3DAvatarSettings();
334 }

References mZoomSDKImpl.

◆ getAccountService()

AccountService us.zoom.sdk.ZoomSDK.getAccountService ( )
inline

Gets the account service instance.

Returns
If the function succeeds, it returns the shared instance of account service. Otherwise, this function fails and returns null if the SDK has not been initialized successfully or the user did not log in.
Deprecated
This method is no longer used.

Definition at line 287 of file ZoomSDK.java.

287 {
288 return mZoomSDKImpl.getAccountService();
289 }

References mZoomSDKImpl.

◆ getDomain()

String us.zoom.sdk.ZoomSDK.getDomain ( )
inline

Gets the current domain.

Returns
If the function succeeds, it returns the current domain. Otherwise, this function fails and returns null.

Definition at line 227 of file ZoomSDK.java.

227 {
228 return mZoomSDKImpl.getDomain();
229 }

References mZoomSDKImpl.

◆ getInMeetingService()

InMeetingService us.zoom.sdk.ZoomSDK.getInMeetingService ( )
inline

Gets the in-meeting service instance.

Returns
If the function succeeds, it returns the shared instance of InMeetingService. Otherwise, this function fails and returns null if the SDK has not been initialized successfully.

Definition at line 305 of file ZoomSDK.java.

305 {
306 return mZoomSDKImpl.getInMeetingService();
307 }

References mZoomSDKImpl.

Referenced by us.zoom.sdk.MobileRTCVideoView.init(), and us.zoom.sdk.MobileRTCVideoView.initActivity().

◆ getInstance()

ZoomSDK us.zoom.sdk.ZoomSDK.getInstance ( )
inlinestatic

Gets a shared instance of Zoom SDK. Must call from the main thread.

Returns
If the function succeeds, it returns the Zoom SDK instance. Otherwise, this function fails and returns null.

Definition at line 25 of file ZoomSDK.java.

25 {
26 if (instance == null) {
27 synchronized (ZoomSDK.class) {
28 if (instance == null) {
29 instance = new ZoomSDK();
30 }
31 }
32 }
33 return instance;
34 }

References instance, and ZoomSDK().

Referenced by us.zoom.sdk.MobileRTCVideoView.init(), us.zoom.sdk.MobileRTCVideoView.initActivity(), and us.zoom.sdk.ZoomSDKRenderer.subscribe().

◆ getMeetingService()

MeetingService us.zoom.sdk.ZoomSDK.getMeetingService ( )
inline

Gets the instance of meeting service.

Returns
If the function succeeds, it returns the shared instance of MeetingService. Otherwise, this function fails and returns null if the SDK has not been initialized successfully.

Definition at line 266 of file ZoomSDK.java.

266 {
267 return mZoomSDKImpl.getMeetingService();
268 }

References mZoomSDKImpl.

Referenced by us.zoom.sdk.ZoomSDKRenderer.subscribe().

◆ getMeetingSettingsHelper()

MeetingSettingsHelper us.zoom.sdk.ZoomSDK.getMeetingSettingsHelper ( )
inline

Gets the meeting settings helper instance.

Returns
If the function succeeds, it returns the shared instance of MeetingSettingsHelper. Otherwise, this function fails and returns null if the SDK has not been initialized successfully.

Definition at line 323 of file ZoomSDK.java.

323 {
324 return mZoomSDKImpl.getMeetingSettingsHelper();
325 }

References mZoomSDKImpl.

◆ getNotificationServiceHelper()

INotificationServiceHelper us.zoom.sdk.ZoomSDK.getNotificationServiceHelper ( )
inline

Gets the notification service helper interface.

Returns
If the function succeeds, it returns the shared instance of INotificationServiceHelper. Otherwise, this function fails and returns null.

Definition at line 350 of file ZoomSDK.java.

350 {
351 return mZoomSDKImpl.getNotificationServiceHelper();
352 }

References mZoomSDKImpl.

◆ getPreMeetingService()

PreMeetingService us.zoom.sdk.ZoomSDK.getPreMeetingService ( )
inline

Gets the pre-meeting service instance.

Returns
If the function succeeds, it returns the shared instance of PreMeetingService. Otherwise, this function fails and returns null if the SDK has not been initialized successfully or the user did not log in.

Definition at line 296 of file ZoomSDK.java.

296 {
297 return mZoomSDKImpl.getPreMeetingService();
298 }

References mZoomSDKImpl.

◆ getReminderHelper()

IReminderHelper us.zoom.sdk.ZoomSDK.getReminderHelper ( )
inline

Gets the reminder helper interface.

Returns
If the function succeeds, it returns the shared instance of IReminderHelper. Otherwise, this function fails and returns null if the SDK has not been successfully initialized.

Definition at line 341 of file ZoomSDK.java.

341 {
342 return mZoomSDKImpl.getReminderHelper();
343 }

References mZoomSDKImpl.

◆ getSdkLocale()

Locale us.zoom.sdk.ZoomSDK.getSdkLocale ( Context context)
inline

Gets the current Zoom SDK locale configuration.

Parameters
contextAndroid context.
Returns
If the function succeeds, it returns the current Zoom SDK locale configuration. Otherwise, this function fails and returns null.

Definition at line 248 of file ZoomSDK.java.

248 {
249 return mZoomSDKImpl.getSdkLocale(context);
250 }

References mZoomSDKImpl.

◆ getShareSourceHelper()

ZoomSDKShareSourceHelper us.zoom.sdk.ZoomSDK.getShareSourceHelper ( )
inline

Gets the share source helper.

Returns
If the function succeeds, it returns the share source helper. Otherwise, this function fails and returns null.

Definition at line 59 of file ZoomSDK.java.

59 {
60 return mZoomSDKImpl.getShareSourceHelper();
61 }

References mZoomSDKImpl.

◆ getSmsService()

SmsService us.zoom.sdk.ZoomSDK.getSmsService ( )
inline

Gets SMS service for real name authentication for Chinese users.

Returns
If the function succeeds, it returns the SMS service. Otherwise, this function fails and returns null.

Definition at line 275 of file ZoomSDK.java.

275 {
276 return mZoomSDKImpl.getSmsService();
277 }

References mZoomSDKImpl.

◆ getVersion()

String us.zoom.sdk.ZoomSDK.getVersion ( Context context)
inline

Gets the Zoom SDK version on Android.

Parameters
contextAndroid context.
Returns
If the function succeeds, it returns the Zoom SDK version. Otherwise, this function fails and returns null.

Definition at line 134 of file ZoomSDK.java.

134 {
135 return mZoomSDKImpl.getVersion(context);
136 }

References mZoomSDKImpl.

◆ getVideoSourceHelper()

ZoomSDKVideoSourceHelper us.zoom.sdk.ZoomSDK.getVideoSourceHelper ( )
inline

Gets the video source helper.

Returns
If the function succeeds, it returns the video source helper. Otherwise, this function fails and returns null.

Definition at line 50 of file ZoomSDK.java.

50 {
51 return mZoomSDKImpl.getVideoSourceHelper();
52 }

References mZoomSDKImpl.

◆ getZoomUIService()

ZoomUIService us.zoom.sdk.ZoomSDK.getZoomUIService ( )
inline

Gets the Zoom UI service instance.

Returns
If the function succeeds, it returns the shared instance of ZoomUIService. Otherwise, this function fails and returns null if the SDK has not been initialized successfully.

Definition at line 314 of file ZoomSDK.java.

314 {
315 return mZoomSDKImpl.getZoomUIService();
316 }

References mZoomSDKImpl.

◆ handleSSOLoginURIProtocol()

boolean us.zoom.sdk.ZoomSDK.handleSSOLoginURIProtocol ( String uriProtocol)
inline

Logs in with the SSO login URI, link zoommtg://*.

Parameters
uriProtocolThe SSO login URL, link zoommtg://*.
Returns
true if the function succeeds. Otherwise, false.

Definition at line 173 of file ZoomSDK.java.

173 {
174 return mZoomSDKImpl.handleSSOLoginURIProtocol(uriProtocol);
175 }

References mZoomSDKImpl.

◆ hasRawDataLicense()

boolean us.zoom.sdk.ZoomSDK.hasRawDataLicense ( )
inline

Determines whether the SDK has a raw data license. Must call from the main thread.

Returns
true if the SDK has a raw data license. Otherwise, false.

Definition at line 41 of file ZoomSDK.java.

41 {
42 return mZoomSDKImpl.hasRawDataLicense();
43 }

References mZoomSDKImpl.

◆ initialize()

void us.zoom.sdk.ZoomSDK.initialize ( Context context,
ZoomSDKInitializeListener listener,
ZoomSDKInitParams params )
inline

Initializes Zoom SDK.

Parameters
contextAndroid context.
listenerListener for initialization result.
paramsInitialization params. You can use JWT token to initialize.

Definition at line 106 of file ZoomSDK.java.

106 {
107 mZoomSDKImpl.initialize(context, listener, params);
108 }

References mZoomSDKImpl.

◆ isDeviceSupported()

boolean us.zoom.sdk.ZoomSDK.isDeviceSupported ( Context context)
inline

Determines whether the current device is able to run the SDK.

Parameters
contextAndroid context.
Returns
true if the device is able to run the SDK. Otherwise, false.

Definition at line 144 of file ZoomSDK.java.

144 {
145 return mZoomSDKImpl.isDeviceSupported(context);
146 }

References mZoomSDKImpl.

◆ isInitialized()

boolean us.zoom.sdk.ZoomSDK.isInitialized ( )
inline

Determines whether Zoom SDK has been initialized. Must call from the main thread.

Returns
true if the SDK has been initialized. Otherwise, false.

Definition at line 153 of file ZoomSDK.java.

153 {
154 return mZoomSDKImpl.isInitialized();
155 }

References mZoomSDKImpl.

◆ isLoggedIn()

boolean us.zoom.sdk.ZoomSDK.isLoggedIn ( )
inline

Determines whether the 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 if the user has logged in. Otherwise, false.

Definition at line 196 of file ZoomSDK.java.

196 {
197 return mZoomSDKImpl.isLoggedIn();
198 }

References mZoomSDKImpl.

◆ logoutZoom()

boolean us.zoom.sdk.ZoomSDK.logoutZoom ( )
inline

Logs out Zoom SDK.

Note
This function is optional. Ignore it if you do not have the account of working email or SSO in Zoom.
Returns
true if the user can log out. Otherwise, false.

Definition at line 185 of file ZoomSDK.java.

185 {
186 return mZoomSDKImpl.logoutZoom();
187 }

References mZoomSDKImpl.

◆ registerNotificationService()

MobileRTCSDKError us.zoom.sdk.ZoomSDK.registerNotificationService ( String accessToken)
inline

Registers notification service.

Parameters
accessTokenInitialization parameter of notification service.
Returns
If the function succeeds, it returns MobileRTCSDKError.SDKERR_SUCCESS. Otherwise, this function returns an error.

Definition at line 369 of file ZoomSDK.java.

369 {
370 return mZoomSDKImpl.registerNotificationService(accessToken);
371 }

References mZoomSDKImpl.

◆ removeAuthenticationListener()

void us.zoom.sdk.ZoomSDK.removeAuthenticationListener ( ZoomSDKAuthenticationListener listener)
inline

Unregisters the listener for the callback events of user authentication.

Parameters
listenerThe listener instance.

Definition at line 77 of file ZoomSDK.java.

77 {
78 mZoomSDKImpl.removeAuthenticationListener(listener);
79 }

References mZoomSDKImpl.

◆ removeNetworkConnectionListener()

void us.zoom.sdk.ZoomSDK.removeNetworkConnectionListener ( NetworkConnectionListener listener)
inline

Unregisters the listener for network connection events.

Parameters
listenerThe listener instance.

Definition at line 95 of file ZoomSDK.java.

95 {
96 mZoomSDKImpl.removeNetworkConnectionListener(listener);
97 }

References mZoomSDKImpl.

◆ setDomain()

boolean us.zoom.sdk.ZoomSDK.setDomain ( String domain)
inline

Sets a new web domain name. Must call from the main thread.

Parameters
domainDomain name to be set. Default value: zoom.us.
Returns
true if the function succeeds. Otherwise, false if the domain is not supported.

Definition at line 218 of file ZoomSDK.java.

218 {
219 return mZoomSDKImpl.setDomain(domain);
220 }

References mZoomSDKImpl.

◆ setSdkLocale()

void us.zoom.sdk.ZoomSDK.setSdkLocale ( Context context,
Locale locale )
inline

Configures Zoom SDK locale.

Parameters
contextAndroid context.
localeThe locale object. The language item of the locale object cannot be null.

Definition at line 238 of file ZoomSDK.java.

238 {
239 mZoomSDKImpl.setSdkLocale(context, locale);
240 }

References mZoomSDKImpl.

◆ setShowProxyServerDialogImmediatelyIfNeeded()

void us.zoom.sdk.ZoomSDK.setShowProxyServerDialogImmediatelyIfNeeded ( boolean show)
inline

Sets whether to display the setting dialog of proxy server immediately when needed.

Parameters
showtrue to show the proxy server dialog when needed, false otherwise.

Definition at line 257 of file ZoomSDK.java.

257 {
258 mZoomSDKImpl.setShowProxyServerDialogImmediatelyIfNeeded(show);
259 }

References mZoomSDKImpl.

◆ switchDomain()

boolean us.zoom.sdk.ZoomSDK.switchDomain ( String newDomain,
boolean force )
inline

Switches the SDK domain.

Parameters
newDomainThe new domain.
forcetrue to force switch, false otherwise.
Returns
true if the function succeeds. Otherwise, false.

Definition at line 124 of file ZoomSDK.java.

124 {
125 return mZoomSDKImpl.switchDomain(newDomain, force);
126 }

References mZoomSDKImpl.

◆ tryAutoLoginZoom()

int us.zoom.sdk.ZoomSDK.tryAutoLoginZoom ( )
inline

Logs in Zoom SDK automatically with local Zoom or 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 or SSO account in Zoom.
Returns
If the function succeeds, it returns ZoomApiError.ZOOM_API_ERROR_SUCCESS. Otherwise, this function returns an error.

Definition at line 207 of file ZoomSDK.java.

207 {
208 return mZoomSDKImpl.tryAutoLoginZoom();
209 }

References mZoomSDKImpl.

◆ uninitialize()

void us.zoom.sdk.ZoomSDK.uninitialize ( )
inline

Uninitializes Zoom SDK.

Definition at line 113 of file ZoomSDK.java.

113 {
114 mZoomSDKImpl.uninitialize();
115 }

References mZoomSDKImpl.

◆ unregisterNotificationService()

MobileRTCSDKError us.zoom.sdk.ZoomSDK.unregisterNotificationService ( )
inline

Unregisters notification service.

Returns
If the function succeeds, it returns MobileRTCSDKError.SDKERR_SUCCESS. Otherwise, this function returns an error.

Definition at line 378 of file ZoomSDK.java.

378 {
379 return mZoomSDKImpl.unRegisterNotificationService();
380 }

References mZoomSDKImpl.

Field Documentation

◆ instance

volatile ZoomSDK us.zoom.sdk.ZoomSDK.instance
staticprivate

Definition at line 13 of file ZoomSDK.java.

Referenced by getInstance().

◆ mZoomSDKImpl