You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JitsiMeetConferenceOptions.h 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * Copyright @ 2019-present 8x8, Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "JitsiMeetUserInfo.h"
  18. @interface JitsiMeetConferenceOptionsBuilder : NSObject
  19. /**
  20. * Server where the conference should take place.
  21. */
  22. @property (nonatomic, copy, nullable) NSURL *serverURL;
  23. /**
  24. * Room name.
  25. */
  26. @property (nonatomic, copy, nullable) NSString *room;
  27. /**
  28. * Conference subject.
  29. */
  30. @property (nonatomic, copy, nullable) NSString *subject;
  31. /**
  32. * JWT token used for authentication.
  33. */
  34. @property (nonatomic, copy, nullable) NSString *token;
  35. /**
  36. * Color scheme override, see:
  37. * https://github.com/jitsi/jitsi-meet/blob/master/react/features/base/color-scheme/defaultScheme.js
  38. */
  39. @property (nonatomic, copy, nullable) NSDictionary *colorScheme;
  40. /**
  41. * Feature flags. See: https://github.com/jitsi/jitsi-meet/blob/master/react/features/base/flags/constants.js
  42. */
  43. @property (nonatomic, readonly, nonnull) NSDictionary *featureFlags;
  44. /**
  45. * Set to YES to join the conference with audio / video muted or to start in audio
  46. * only mode respectively.
  47. */
  48. @property (nonatomic) BOOL audioOnly;
  49. @property (nonatomic) BOOL audioMuted;
  50. @property (nonatomic) BOOL videoMuted;
  51. /**
  52. * Set to YES to enable the welcome page. Typically SDK users won't need this enabled
  53. * since the host application decides which meeting to join.
  54. */
  55. @property (nonatomic) BOOL welcomePageEnabled;
  56. /**
  57. * Information about the local user. It will be used in absence of a token.
  58. */
  59. @property (nonatomic, nullable) JitsiMeetUserInfo *userInfo;
  60. - (void)setFeatureFlag:(NSString *_Nonnull)flag withBoolean:(BOOL)value;
  61. - (void)setFeatureFlag:(NSString *_Nonnull)flag withValue:(id _Nonnull)value;
  62. @end
  63. @interface JitsiMeetConferenceOptions : NSObject
  64. @property (nonatomic, copy, nullable, readonly) NSURL *serverURL;
  65. @property (nonatomic, copy, nullable, readonly) NSString *room;
  66. @property (nonatomic, copy, nullable, readonly) NSString *subject;
  67. @property (nonatomic, copy, nullable, readonly) NSString *token;
  68. @property (nonatomic, copy, nullable) NSDictionary *colorScheme;
  69. @property (nonatomic, readonly, nonnull) NSDictionary *featureFlags;
  70. @property (nonatomic, readonly) BOOL audioOnly;
  71. @property (nonatomic, readonly) BOOL audioMuted;
  72. @property (nonatomic, readonly) BOOL videoMuted;
  73. @property (nonatomic, readonly) BOOL welcomePageEnabled;
  74. @property (nonatomic, nullable) JitsiMeetUserInfo *userInfo;
  75. + (instancetype _Nonnull)fromBuilder:(void (^_Nonnull)(JitsiMeetConferenceOptionsBuilder *_Nonnull))initBlock;
  76. - (instancetype _Nonnull)init NS_UNAVAILABLE;
  77. @end