Meeting SDK for Android API Reference
Loading...
Searching...
No Matches
ZoomSDK.java
Go to the documentation of this file.
1package us.zoom.sdk;
2
3import android.content.Context;
4
5import java.util.Locale;
6
7import us.zoom.internal.impl.ZoomSDKImpl;
8
12public final class ZoomSDK {
13 private static volatile ZoomSDK instance;
14 private final ZoomSDKImpl mZoomSDKImpl;
15
16 private ZoomSDK() {
17 mZoomSDKImpl = ZoomSDKImpl.getInstance();
18 }
19
25 public static ZoomSDK getInstance() {
26 if (instance == null) {
27 synchronized (ZoomSDK.class) {
28 if (instance == null) {
29 instance = new ZoomSDK();
30 }
31 }
32 }
33 return instance;
34 }
35
41 public boolean hasRawDataLicense() {
42 return mZoomSDKImpl.hasRawDataLicense();
43 }
44
51 return mZoomSDKImpl.getVideoSourceHelper();
52 }
53
60 return mZoomSDKImpl.getShareSourceHelper();
61 }
62
69 mZoomSDKImpl.addAuthenticationListener(listener);
70 }
71
78 mZoomSDKImpl.removeAuthenticationListener(listener);
79 }
80
87 mZoomSDKImpl.addNetworkConnectionListener(listener);
88 }
89
96 mZoomSDKImpl.removeNetworkConnectionListener(listener);
97 }
98
104 public void initialize(Context context, ZoomSDKInitializeListener listener, ZoomSDKInitParams params) {
105 mZoomSDKImpl.initialize(context, listener, params);
106 }
107
111 public void uninitialize() {
112 mZoomSDKImpl.uninitialize();
113 }
114
122 public boolean switchDomain(String newDomain, boolean force) {
123 return mZoomSDKImpl.switchDomain(newDomain, force);
124 }
125
131 public String getVersion(Context context) {
132 return mZoomSDKImpl.getVersion(context);
133 }
134
140 public boolean isDeviceSupported(Context context) {
141 return mZoomSDKImpl.isDeviceSupported(context);
142 }
143
149 public boolean isInitialized() {
150 return mZoomSDKImpl.isInitialized();
151 }
152
159 public String generateSSOLoginURL(String ssoDomainPrefix) {
160 return mZoomSDKImpl.generateSSOLoginURL(ssoDomainPrefix);
161 }
162
169 public boolean handleSSOLoginURIProtocol(String uriProtocol) {
170 return mZoomSDKImpl.handleSSOLoginURIProtocol(uriProtocol);
171 }
172
173
180 public boolean logoutZoom() {
181 return mZoomSDKImpl.logoutZoom();
182 }
183
190 public boolean isLoggedIn() {
191 return mZoomSDKImpl.isLoggedIn();
192 }
193
200 public int tryAutoLoginZoom() {
201 return mZoomSDKImpl.tryAutoLoginZoom();
202 }
203
204
211 public boolean setDomain(String domain) {
212 return mZoomSDKImpl.setDomain(domain);
213 }
214
220 public String getDomain() {
221 return mZoomSDKImpl.getDomain();
222 }
223
224
231 public void setSdkLocale(Context context, Locale locale) {
232 mZoomSDKImpl.setSdkLocale(context, locale);
233 }
234
241 public Locale getSdkLocale(Context context) {
242 return mZoomSDKImpl.getSdkLocale(context);
243 }
244
251 mZoomSDKImpl.setShowProxyServerDialogImmediatelyIfNeeded(show);
252 }
253
260 return mZoomSDKImpl.getMeetingService();
261 }
262
269 return mZoomSDKImpl.getSmsService();
270 }
271
277 @Deprecated
279 return mZoomSDKImpl.getAccountService();
280 }
281
288 return mZoomSDKImpl.getPreMeetingService();
289 }
290
297 return mZoomSDKImpl.getInMeetingService();
298 }
299
306 return mZoomSDKImpl.getZoomUIService();
307 }
308
315 return mZoomSDKImpl.getMeetingSettingsHelper();
316 }
317
324 return mZoomSDKImpl.get3DAvatarSettings();
325 }
326
332 return mZoomSDKImpl.getReminderHelper();
333 }
334
341 return mZoomSDKImpl.getNotificationServiceHelper();
342 }
343
349 mZoomSDKImpl.enableAutoRegisterNotificationServiceForLogin(enable);
350 }
351
359 return mZoomSDKImpl.registerNotificationService(accessToken);
360 }
361
368 return mZoomSDKImpl.unRegisterNotificationService();
369 }
370}
ZOOM SDK global manager.
Definition ZoomSDK.java:12
String generateSSOLoginURL(String ssoDomainPrefix)
Get SSO login url By the domain prefix.
Definition ZoomSDK.java:159
ZoomSDKVideoSourceHelper getVideoSourceHelper()
Get video source helper.
Definition ZoomSDK.java:50
final ZoomSDKImpl mZoomSDKImpl
Definition ZoomSDK.java:14
static volatile ZoomSDK instance
Definition ZoomSDK.java:13
MobileRTCSDKError registerNotificationService(String accessToken)
Register notification service.
Definition ZoomSDK.java:358
boolean isDeviceSupported(Context context)
Query if the current device is able to run SDK.
Definition ZoomSDK.java:140
void removeNetworkConnectionListener(NetworkConnectionListener listener)
Unregister a listener for the callback event of user authentication.
Definition ZoomSDK.java:95
void setShowProxyServerDialogImmediatelyIfNeeded(boolean show)
Set if display immediately the setting dialog of proxy server.
Definition ZoomSDK.java:250
I3DAvatarSettingContext get3DAvatarSettings()
Get 3D avatar settings interface.
Definition ZoomSDK.java:323
void enableAutoRegisterNotificationServiceForLogin(boolean enable)
Enable or disable auto register notification service. This is enabled by default.
Definition ZoomSDK.java:348
boolean isLoggedIn()
Query if ZOOM user has logged in. Note This function is optional, ignore it if you do not have the ac...
Definition ZoomSDK.java:190
boolean setDomain(String domain)
Set a new web domain name, must call from main thread.
Definition ZoomSDK.java:211
void addAuthenticationListener(ZoomSDKAuthenticationListener listener)
Register a listener for the callback events of user authentication.
Definition ZoomSDK.java:68
boolean logoutZoom()
Logout ZOOM SDK. Note This function is optional, ignore it if you do not have the account of working ...
Definition ZoomSDK.java:180
InMeetingService getInMeetingService()
Get InMeetingService instance.
Definition ZoomSDK.java:296
void setSdkLocale(Context context, Locale locale)
Configure ZOOM SDK locale.
Definition ZoomSDK.java:231
Locale getSdkLocale(Context context)
Get current ZOOM SDK locale configuration.
Definition ZoomSDK.java:241
void addNetworkConnectionListener(NetworkConnectionListener listener)
Register a listener to receive the NetworkConnectionHandler.
Definition ZoomSDK.java:86
ZoomUIService getZoomUIService()
Get ZoomUIService instance.
Definition ZoomSDK.java:305
boolean switchDomain(String newDomain, boolean force)
Call the method to switch sdk domain.
Definition ZoomSDK.java:122
PreMeetingService getPreMeetingService()
Get preMeetingService instance.
Definition ZoomSDK.java:287
IReminderHelper getReminderHelper()
Get Reminder Helper interface;.
Definition ZoomSDK.java:331
void initialize(Context context, ZoomSDKInitializeListener listener, ZoomSDKInitParams params)
Definition ZoomSDK.java:104
boolean handleSSOLoginURIProtocol(String uriProtocol)
Login with the SSO login uri, link zoommtg://*.
Definition ZoomSDK.java:169
String getVersion(Context context)
Get ZOOM SDK version on Android.
Definition ZoomSDK.java:131
MobileRTCSDKError unregisterNotificationService()
Unregister notification service.
Definition ZoomSDK.java:367
AccountService getAccountService()
Get account service instance.
Definition ZoomSDK.java:278
static ZoomSDK getInstance()
Get a shared instance of ZOOM SDK, must call from the main thread.
Definition ZoomSDK.java:25
boolean isInitialized()
Query if ZOOM SDK has been initialized, must call from main thread.
Definition ZoomSDK.java:149
ZoomSDKShareSourceHelper getShareSourceHelper()
Get share source helper.
Definition ZoomSDK.java:59
INotificationServiceHelper getNotificationServiceHelper()
Get notification service helper interface.
Definition ZoomSDK.java:340
SmsService getSmsService()
Get Sms Service for real name auth for chinese user.
Definition ZoomSDK.java:268
String getDomain()
Get current domain.
Definition ZoomSDK.java:220
MeetingService getMeetingService()
Get the instance of meeting service.
Definition ZoomSDK.java:259
int tryAutoLoginZoom()
Login ZOOM SDK automatically with local ZOOM/SSO token once you have logged in successfully....
Definition ZoomSDK.java:200
MeetingSettingsHelper getMeetingSettingsHelper()
Get MeetingSettingsHelper instance.
Definition ZoomSDK.java:314
void uninitialize()
uninitialize Zoom SDK
Definition ZoomSDK.java:111
boolean hasRawDataLicense()
Query is has raw data license, must call from the main thread.
Definition ZoomSDK.java:41
void removeAuthenticationListener(ZoomSDKAuthenticationListener listener)
Unregister the listener for the callback events of user authentication.
Definition ZoomSDK.java:77
Zoom SDK initialize params ZoomSDK#initialize(Context, ZoomSDKInitializeListener, ZoomSDKInitParams).
Enumeration of common errors of SDK.
Account Information Service for current logged-in User.
3D Avatar Setting. Only be valid from join/start meeting until meeting end.
The helper to handle reminder dialog.
ZOOM meeting service.
Callback event of completing the detection of proxy.
Listener for the result of ZOOM SDK user authentication.
Listener listens to ZOOM SDK initialization results.
Interface to set external share source.
Service for users' to operate with Zoom UI.