The method provides support for authorizing MobileRTC.
More...
#import <MobileRTCAuthService.h>
Inherits NSObject.
The method provides support for authorizing MobileRTC.
- Warning
- Users should authorize MobileRTC before using it to avoid invalid functions in MobileRTC.
Definition at line 21 of file MobileRTCAuthService.h.
◆ enableAutoRegisterNotificationServiceForLogin:
- (void) enableAutoRegisterNotificationServiceForLogin: |
|
(BOOL) |
enable |
|
Enable or disable auto register notification service. This is enabled by default.
- Parameters
-
enable | YES means enabled, otherwise not. |
◆ getAccountInfo
Specify to get the profile information of logged-in user.
- Returns
- The profile information of logged-in user.
- Warning
- You can only get the instance successfully of logged-in user.
◆ getNotificationServiceHelper
Get notification service controller interface.
- Returns
- If the function succeeds, it will return a ZoomSDKZpnsServiceController object.
◆ getUserType
Get user type.
- Returns
- One of the user types listed in MobileRTCUserType.
- Warning
- The method is optional. The default user type is MobileRTCUserType_APIUser. User who logs in MobileRTC with working email is MobileRTCUserType_ZoomUser; User who logs in MobileRTC with SSO is MobileRTCUserType_SSOUser.
◆ isLoggedIn
Check whether mobileRTC is logged-in or not.
- Returns
- YES indicates logged-in. Otherwise not.
- Warning
- The method is optional, ignore it if you do not log in with working email or SSO.
◆ logoutRTC
Specify to logout MobileRTC.
/*!
- Returns
- YES indicates to call the method successfully. Otherwise not.
- Warning
- The method is optional, ignore it if you do not login MobileRTC.
◆ registerNotificationService:
Register notification service.
- Parameters
-
accessToken | Initialize parameter of notification service. |
- Returns
- If the function succeeds, it will return MobileRTCSDKError_Success. Otherwise failed.
◆ sdkAuth
Authenticate SDK.
- Warning
- if you want to auth with jwt token, please fill the token property. Otherwise, please fill the client key and client secret property.
-
If the key or secret of client is blank, user will get error:MobileRTCAuthError_KeyOrSecretEmpty via onMobileRTCAuthReturn defined in MobileRTCAuthDelegate.
◆ unregisterNotificationService
Unregister notification service.
- Returns
- If the function succeeds, it will return MobileRTCSDKError_Success. Otherwise failed.
◆ clientKey
APP Key got from zoom.us.
- Warning
- Keep the value as a secret. DO NOT publish it.
Definition at line 32 of file MobileRTCAuthService.h.
◆ clientSecret
- (NSString*) clientSecret |
|
readwritenonatomicretain |
APP secret got from zoom.us.
- Warning
- Keep the value as a secret. DO NOT publish it.
Definition at line 38 of file MobileRTCAuthService.h.
◆ delegate
◆ jwtToken
jwt auth token.
- Warning
- Keep the value as a secret. DO NOT publish it. If jwtToken is nil or empty,We will user your appKey and appSecret to Auth, We recommend using JWT Token, and generate JWT Token on your web backend.
Definition at line 44 of file MobileRTCAuthService.h.