Meeting SDK for iOS API Reference
Loading...
Searching...
No Matches
MobileRTCAuthService.h
Go to the documentation of this file.
1
5
6#import <Foundation/Foundation.h>
7#import <MobileRTC/MobileRTCConstants.h>
8#import <MobileRTC/MobileRTCNotificationServiceHelper.h>
9
10
11@protocol MobileRTCAuthDelegate;
14
20@interface MobileRTCAuthService : NSObject
24@property (weak, nonatomic) id<MobileRTCAuthDelegate> _Nullable delegate;
25
30@property (nullable, retain, nonatomic) NSString *jwtToken;
31
35@property (nullable, retain, nonatomic) NSString *publicAppKey;
36
42- (void)sdkAuth;
43
49- (BOOL)isLoggedIn;
50
57
58// @cond PRIVATE
59
65- (nullable NSString *)generateSSOLoginWebURL:(nonnull NSString*)vanityUrl;
66
72- (MobileRTCLoginFailReason)ssoLoginWithWebUriProtocol:(nonnull NSString*)uriProtocol;
73
74// @endcond
75
81- (BOOL)logoutRTC;
82
89
94- (void)enableAutoRegisterNotificationServiceForLogin:(BOOL)enable;
95
101- (MobileRTCSDKError)registerNotificationService:(nullable NSString*)accessToken;
102
108
114
115@end
116
121@protocol MobileRTCAuthDelegate <NSObject>
122@required
127- (void)onMobileRTCAuthReturn:(MobileRTCAuthError)returnValue;
128
129@optional
134
140- (void)onMobileRTCLoginResult:(MobileRTCLoginFailReason)resultValue;
141
146- (void)onMobileRTCLogoutReturn:(NSInteger)returnValue;
147
153- (void)onNotificationServiceStatus:(MobileRTCNotificationServiceStatus)status error:(MobileRTCNotificationServiceError)error;
154
155@end
156
162@interface MobileRTCAccountInfo : NSObject
167- (nullable NSString *)getDisplayName;
168
174- (nullable NSString*)getEmailAddress DEPRECATED_MSG_ATTRIBUTE("No longer used");
175
181- (nullable NSString*)getUserName DEPRECATED_MSG_ATTRIBUTE("Use -getDisplayName instead");
182
188- (nullable NSString *)getPMIVanityURL DEPRECATED_MSG_ATTRIBUTE("No longer used");
189
195- (BOOL)isTelephoneOnlySupported DEPRECATED_MSG_ATTRIBUTE("No longer used");
196
202- (BOOL)isTelephoneAndVoipSupported DEPRECATED_MSG_ATTRIBUTE("No longer used");
203
209- (BOOL)is3rdPartyAudioSupported DEPRECATED_MSG_ATTRIBUTE("No longer used");
210
216- (nullable NSString *)get3rdPartyAudioInfo DEPRECATED_MSG_ATTRIBUTE("No longer used");
217
223- (MobileRTCMeetingItemAudioType)getDefaultAudioInfo DEPRECATED_MSG_ATTRIBUTE("No longer used");
224
230- (BOOL)onlyAllowSignedInUserJoinMeeting DEPRECATED_MSG_ATTRIBUTE("No longer used");
231
237- (nullable NSArray <MobileRTCAlternativeHost *> *)getCanScheduleForUsersList DEPRECATED_MSG_ATTRIBUTE("No longer used");
238
244- (BOOL)isLocalRecordingSupported DEPRECATED_MSG_ATTRIBUTE("No longer used");
245
251- (BOOL)isCloudRecordingSupported DEPRECATED_MSG_ATTRIBUTE("No longer used");
252
258- (MobileRTCMeetingItemRecordType)getDefaultAutoRecordType DEPRECATED_MSG_ATTRIBUTE("No longer used");
259
265- (BOOL)isSpecifiedDomainCanJoinFeatureOn DEPRECATED_MSG_ATTRIBUTE("No longer used");
266
272- (nullable NSArray <NSString *> *)getDefaultCanJoinUserSpecifiedDomains DEPRECATED_MSG_ATTRIBUTE("No longer used");
273
274@end
275
280@interface MobileRTCAlternativeHost : NSObject
281@property (nonatomic, retain, readonly) NSString * _Nullable email;
282@property (nonatomic, retain, readonly) NSString * _Nullable firstName;
283@property (nonatomic, retain, readonly) NSString * _Nullable lastName;
284@property (nonatomic, assign, readonly) unsigned long long PMINumber;
285
286- (id _Nonnull)initWithEmailAddress:(NSString * _Nonnull)emailAddress firstname:(NSString * _Nonnull)firstName lastName:(NSString * _Nonnull)lastName PMI:(unsigned long long)PMINumber;
287@end
MobileRTCUserType
Enumeration of user types.
MobileRTCMeetingItemRecordType
Enumeration of the meeting recording types in meeting.
MobileRTCNotificationServiceStatus
Enumeration of the type for alive connect service status.
MobileRTCNotificationServiceError
Enumeration of the notification service error codes.
MobileRTCSDKError
Enumeration of the SDK error.
MobileRTCMeetingItemAudioType
Enumeration of audio types in meeting.
MobileRTCLoginFailReason
Enumeration of the login failure reasons.
MobileRTCAuthError
Enumeration of SDK authentication results.
Provides the currently logged-in account's display name.
BOOL isTelephoneAndVoipSupported()
Determines if Audio Type (Telephone And VoIP) is supported while scheduling a meeting.
nullable NSString * getEmailAddress()
Gets the working email address.
nullable NSString * getDisplayName()
Gets the user's screen name.
BOOL onlyAllowSignedInUserJoinMeeting()
Determines if only signed-in users can join the meeting while scheduling a meeting.
nullable NSArray< NSString * > * getDefaultCanJoinUserSpecifiedDomains()
Gets the specified domain from user profile.
MobileRTCMeetingItemRecordType getDefaultAutoRecordType()
Gets the default Meeting Auto Recording Types from user profile.
BOOL isCloudRecordingSupported()
Determines if cloud recording is supported while scheduling a meeting.
BOOL isSpecifiedDomainCanJoinFeatureOn()
Determines if only users in specified domain can join the meeting while scheduling a meeting.
nullable NSString * get3rdPartyAudioInfo()
Gets the 3rd Party Audio Info from user profile.
nullable NSString * getUserName()
Gets the username of a logged in account. [Login User Only].
BOOL is3rdPartyAudioSupported()
Determines if Audio Type (3rdParty Audio) is supported while scheduling a meeting.
BOOL isLocalRecordingSupported()
Determines if local recording is supported while scheduling a meeting.
nullable NSString * getPMIVanityURL()
Gets the PMI Vanity URL from user profile information.
MobileRTCMeetingItemAudioType getDefaultAudioInfo()
Gets the default Audio Type from user profile.
BOOL isTelephoneOnlySupported()
Determines if Audio Type (Telephone Only) is supported while scheduling a meeting.
nullable NSArray< MobileRTCAlternativeHost * > * getCanScheduleForUsersList()
Gets the alternative host list from user profile information.
It is used to store the information of the alternative host.
The method provides support for authorizing MobileRTC.
NSString * publicAppKey
Public app key used for SDK authentication. Alternative to JWT token.
id< MobileRTCAuthDelegate > _Nullable delegate
The property to receive authentication/login events.
void sdkAuth()
Authenticate SDK.
MobileRTCUserType getUserType()
Gets the user type.
nullable MobileRTCAccountInfo * getAccountInfo()
Gets account information of the currently logged-in user.
MobileRTCNotificationServiceHelper *_Nullable getNotificationServiceHelper()
Gets the notification service controller interface.
MobileRTCSDKError unregisterNotificationService()
Unregisters the notification service.
BOOL logoutRTC()
Logs out MobileRTC.
BOOL isLoggedIn()
Queries whether mobileRTC is logged-in or not.
NSString * jwtToken
Jwt auth token.
Helper for managing meeting transfer and presence features.
void onMobileRTCAuthExpired()
Callback event when the token expires.