Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKAuthService Class Reference

Callback event of ZOOM SDK authorization. Authorize Zoom SDK and the custom application with the key/secret before usage. Once authorize successfully, return ZoomSDKAuthError_Success via onZoomSDKAuthReturn. More...

#include <ZoomSDKAuthService.h>

Inherits NSObject.

Instance Methods

(ZoomSDKError- sdkAuth:
 New authenticate SDK.
 
(BOOL) - isAuthorized
 Determine if SDK is authorized.
 
(ZoomSDKError- logout
 Logout ZOOM.
 
(ZoomSDKAccountInfo *_Nullable) - getAccountInfo
 Get user's account information.
 
(NSString *_Nullable) - getSDKIdentity
 Get SDK identity.
 
(void) - enableAutoRegisterNotificationServiceForLogin:
 Enable or disable auto register notification service. This is enabled by default.
 
(ZoomSDKError- registerNotificationService:
 Register notification service.
 
(ZoomSDKError- unregisterNotificationService
 Unregister notification service.
 
(ZoomSDKNotificationServiceController *) - getNotificationServiceController
 Get notification service controller interface.
 

Protected Attributes

id< ZoomSDKAuthDelegate_delegate
 

Properties

id< ZoomSDKAuthDelegatedelegate
 

Detailed Description

Callback event of ZOOM SDK authorization. Authorize Zoom SDK and the custom application with the key/secret before usage. Once authorize successfully, return ZoomSDKAuthError_Success via onZoomSDKAuthReturn.

Note
You should authorize ZOOM SDK firstly before using it, or no, it may not work.

Definition at line 56 of file ZoomSDKAuthService.h.

Method Documentation

◆ enableAutoRegisterNotificationServiceForLogin:

- (void) enableAutoRegisterNotificationServiceForLogin: (BOOL) enable

Enable or disable auto register notification service. This is enabled by default.

Parameters
enableYES means enabled, otherwise not.

◆ getAccountInfo

- (ZoomSDKAccountInfo *_Nullable) getAccountInfo

Get user's account information.

Returns
When user logged in, it will return ZoomSDKAccountInfo object if the function calls successfully. Otherwise returns nil.

◆ getNotificationServiceController

- (ZoomSDKNotificationServiceController *) getNotificationServiceController

Get notification service controller interface.

Returns
If the function succeeds, it will return a ZoomSDKZpnsServiceController object.

◆ getSDKIdentity

- (NSString *_Nullable) getSDKIdentity

Get SDK identity.

Returns
The SDK identity.

◆ isAuthorized

- (BOOL) isAuthorized

Determine if SDK is authorized.

Returns
YES means that it is authorized, otherwise failed.

◆ logout

- (ZoomSDKError) logout

Logout ZOOM.

/**

Returns
If the function succeeds, it will return ZoomSDKError_Success, meanwhile it will call asynchronously onZoomSDKLogout.

◆ registerNotificationService:

- (ZoomSDKError) registerNotificationService: (NSString *) accessToken

Register notification service.

Parameters
accessTokenInitialize parameter of notification service.
Returns
If the function succeeds, it will return ZoomSDKError_Success. Otherwise failed. To get extended error information, see ZoomSDKError.

◆ sdkAuth:

- (ZoomSDKError) sdkAuth: (ZoomSDKAuthContext *) jwttoken

New authenticate SDK.

Parameters
jwttokenA Class object containing auth information.
Returns
If the function succeeds, it will return ZoomSDKError_Success.
Note
If the jwttoken expired, will return callback.

◆ unregisterNotificationService

- (ZoomSDKError) unregisterNotificationService

Unregister notification service.

Returns
If the function succeeds, it will return ZoomSDKError_Success. Otherwise failed.

Field Documentation

◆ _delegate

- (id<ZoomSDKAuthDelegate>) _delegate
protected

Definition at line 58 of file ZoomSDKAuthService.h.

Property Documentation

◆ delegate

- (id<ZoomSDKAuthDelegate>) delegate
readwritenonatomicassign

Definition at line 60 of file ZoomSDKAuthService.h.