Updated on 2023-03-23 GMT+08:00

Service Integration

The file for calling the HWMSDK API must contain the following content:

1
#import <HWMUISDK/HWMUISDK.h>
SDK initialization:
1
2
3
4
5
6
7
8
9
- (void)initSDK {
    HWMOpenSDKConfig *config = [[HWMOpenSDKConfig alloc] init];
    config.appId = @"<#HWMeetingDemo#>";// In app ID login scenario, transfer the applied enterprise app ID. In non-app ID login scenario, you are advised to transfer the enterprise name.
    config.appGroupIndentifier = @"<#appGroupIndentifier#>";// Indicates the app group of ScreenShareExtension.
    BOOL result = [HWMSdk initWithConfig:config];
    if (result) {
          [UIUtil showMessage:@"Initialization succeeded." vc:self];
    }
}

Examples

  • Login API
    1
    [[HWMSdk getOpenApi] login:account password:password callback:^(NSError * _Nullable error, HWMLoginResult * _Nullable result){ }];
    
  • API for creating a meeting
    1
    [[HWMSdk getOpenApi] createConf:param callback:^(NSError * _Nullable error, HWMCreateConfResult * _Nullable result) { }];
    
  • API for joining a meeting
    1
    [[HWMSdk getOpenApi] joinConf:param callback:^(NSError * _Nullable error, id  _Nullable result) { }];
    
  • API for initiating a call
    1
    [[HWMSdk getOpenApi] startCall:param callback:^(NSError * _Nullable error, id  _Nullable result) { }];
    
  • API for scheduling a meeting
    1
    [[HWMBizSdk getBizOpenApi] bookConf:param callback:^(NSError *_Nullable error, id _Nullable result) {  }];
    
  • API for editing a meeting
    1
    [[HWMBizSdk getBizOpenApi] editConf:param callback:^(NSError *_Nullable error, id _Nullable result) {  }];
    
  • Logout API
    1
    [[HWMSdk getOpenApi] logout:^(NSError * _Nullable error, id  _Nullable result) { }];
    

After the code of the preceding APIs is configured, SDK integration will be completed. For more information, see the HWMSDKDemo sample code.