BMXUserServiceProtocol Protocol Reference

Conforms to NSObject
Declared in BMXUserServiceProtocol.h

Instance Methods

connectStatusDidChanged:

链接状态发生变化

- (void)connectStatusDidChanged:(BMXConnectStatus)*status*

Parameters

status
网络状态

Discussion

链接状态发生变化

Declared In

  • BMXUserServiceProtocol.h

Example:

userInfoDidUpdated:

同步用户信息更新(其他设备操作发生用户信息变更)

- (void)userInfoDidUpdated:(BMXUserProfile *)*userProflie*

Discussion

同步用户信息更新(其他设备操作发生用户信息变更)

Declared In

  • BMXUserServiceProtocol.h

Example:

- (void)userInfoDidUpdated:(BMXUserProfile *)userProflie {
    MAXLog(@"用户信息改变");
    [[[BMXClient sharedClient] userService] downloadAvatarWithProfile:userProflie thumbnail:YES  progress:^(int progress, BMXError *error) {
        
    } completion:^(BMXUserProfile *profile, BMXError *error) {
        MAXLog(@"下载成功");
    }];
}

userOtherDeviceDidSignIn:

用户在其他设备上登陆

- (void)userOtherDeviceDidSignIn:(NSInteger)*deviceSN*

Discussion

用户在其他设备上登陆

Declared In

  • BMXUserServiceProtocol.h

Example:

- (void)userOtherDeviceDidSignIn:(NSInteger)deviceSN {
    MAXLog(@"用户在其他设备上登陆");

}

userOtherDeviceDidSignOut:

用户在其他设备上登出

- (void)userOtherDeviceDidSignOut:(NSInteger)*deviceSN*

Discussion

用户在其他设备上登出

Declared In

  • BMXUserServiceProtocol.h

Example:

- (void)userOtherDeviceDidSignOut:(NSInteger)deviceSN {
    MAXLog(@"用户");
}

userSignIn:

用户登陆

- (void)userSignIn:(BMXUserProfile *)*userProflie*

Parameters

userProflie
用户信息

Discussion

用户登陆

Declared In

  • BMXUserServiceProtocol.h

Example:

- (void)userSignIn:(BMXUserProfile *)userProflie {
    [self.maintabController addIMListener];
}

userSignOut:userId:

用户登出

- (void)userSignOut:(BMXError *)*error* userId:(long long)*userId*

Parameters

error
错误码

Discussion

用户登出

Declared In

  • BMXUserServiceProtocol.h

Example:

- (void)userSignOut:(BMXError *)error userId:(long long)userId {
    MAXLog(@"用户登出");
}

© 2019-2022 美信拓扑 | 官网 该文件修订时间: 2022-09-21 11:43:07

results matching ""

    No results matching ""