im::floo::floolib::BMXUserProfile

用户Profile

Inherits from BMXBaseObject

Public Functions

Name
BMXUserProfile()
synchronized void delete()
long userId()
用户ID(唯一)
BMXUserProfile.UserCategory category()
用户策略
String username()
用户名(唯一)
String nickname()
用户昵称
String avatarRatelUrl()
用户头像ratel服务器地址
String avatarUrl()
用户头像
String avatarPath()
用户头像本地存储路径
String avatarThumbnailPath()
用户头像缩略图本地存储路径
String mobilePhone()
用户手机
String email()
用户邮箱
String publicInfo()
用户公开扩展信息,好友可见
String privateInfo()
用户私有扩展信息,好友不可见
BMXUserProfile.AddFriendAuthMode addFriendAuthMode()
加好友校验方式
BMXUserProfile.AuthQuestion authQuestion()
添加好友时的验证问题
BMXUserProfile.MessageSetting messageSetting()
用户消息设定
boolean isAutoAcceptGroupInvite()
收到群组邀请进群时是否自动同意进群

Protected Functions

Name
BMXUserProfile(long cPtr, boolean cMemoryOwn)
void finalize()
long getCPtr(BMXUserProfile obj)

Public Attributes

Name
transient long swigCPtr

Public Functions Documentation

function BMXUserProfile

inline BMXUserProfile()

Example:

function delete

inline synchronized void delete()

Example:

function userId

inline long userId()

用户ID(唯一)

Return: int64_t

Example:

        String name = profile.username();
        if (name.length() > MAX_NAME_LENGTH){
            name = name.substring(0,MAX_NAME_LENGTH) + "...";
        }
        String nickName = profile.nickname();
        if (nickName.length() > MAX_NICKNAME_LENGTH){
            nickName = nickName.substring(0,MAX_NICKNAME_LENGTH) + "...";
        }
//        String publicInfo = profile.publicInfo();
        ChatUtils.getInstance().showProfileAvatar(profile, mUserIcon, mConfig);
        long userId = profile.userId();
        mUserName.setText(TextUtils.isEmpty(name) ? "" : getString(R.string.username_colon)+ name);
        mNickName.setText(TextUtils.isEmpty(nickName) ? getString(R.string.please_set_a_nickname) : nickName);
        mUserId.setText(userId <= 0 ? "" : "ID:" + userId);
//        mUserPubInfo.setText(getString(R.string.personalized_signature) + (TextUtils.isEmpty(publicInfo) ? getString(R.string.welcome_to_set_your_signature) : publicInfo));
        // push
        BMXUserProfile.MessageSetting setting = profile.messageSetting();
        boolean isPush = setting != null && setting.getMPushEnabled();
        boolean isPushDetail = setting != null && setting.getMPushDetail();
        boolean isPushSound = setting != null && setting.getMNotificationSound();
private void initUser(BMXUserProfile profile) {
    long id = profile.userId();
    String nickName = profile.nickname();
    ChatUtils.getInstance().showProfileAvatar(profile, mUserIcon, mConfig);
    mUserId.setEndContent(String.valueOf(id));
    mSetName.setEndContent(TextUtils.isEmpty(nickName) ? "" : nickName);
    showBindPhone(profile.mobilePhone());
    String publicInfo = profile.publicInfo();
    if (TextUtils.isEmpty(publicInfo)) {
        mTvPublic.setVisibility(View.GONE);
        mLinePublic.setVisibility(View.GONE);
    } else {
        mTvPublic.setVisibility(View.VISIBLE);
        mLinePublic.setVisibility(View.VISIBLE);
        mTvPublic.setText(publicInfo);
    }
    String privateInfo = profile.privateInfo();
    if (TextUtils.isEmpty(privateInfo)) {
        mTvPrivate.setVisibility(View.GONE);
        mLinePrivate.setVisibility(View.GONE);
Log.i(TAG, "onProgressChange profile:" + profile.userId() + "-" + s);

function category

inline BMXUserProfile.UserCategory category()

用户策略

Return: [UserCategory]

Example:

function username

inline String username()

用户名(唯一)

Return: std::string

Example:

    private void initUser(BMXUserProfile profile) {

        String name = profile.username();
        if (name.length() > MAX_NAME_LENGTH){
            name = name.substring(0,MAX_NAME_LENGTH) + "...";
        }
        String nickName = profile.nickname();
        if (nickName.length() > MAX_NICKNAME_LENGTH){
            nickName = nickName.substring(0,MAX_NICKNAME_LENGTH) + "...";
        }
//        String publicInfo = profile.publicInfo();
        ChatUtils.getInstance().showProfileAvatar(profile, mUserIcon, mConfig);
        long userId = profile.userId();
        mUserName.setText(TextUtils.isEmpty(name) ? "" : getString(R.string.username_colon)+ name);
        mNickName.setText(TextUtils.isEmpty(nickName) ? getString(R.string.please_set_a_nickname) : nickName);
        mUserId.setText(userId <= 0 ? "" : "ID:" + userId);
//        mUserPubInfo.setText(getString(R.string.personalized_signature) + (TextUtils.isEmpty(publicInfo) ? getString(R.string.welcome_to_set_your_signature) : publicInfo));
        // push
        BMXUserProfile.MessageSetting setting = profile.messageSetting();
        boolean isPush = setting != null && setting.getMPushEnabled();
} else {
    BMXUserProfile profile = RosterFetcher.getFetcher().getProfile();
    if (group) {
        //如果是群  需要获取群成员名称
        BMXGroup.Member member = GroupManager.getInstance().getMemberByDB(mMaxMessage.conversationId(), mMaxMessage.fromId());
        if (member != null && !TextUtils.isEmpty(member.getMGroupNickname())) {
            userName = member.getMGroupNickname();
        } else if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        }
    } else {
        if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        }
    }
    if (mIconView != null) {
            userName = member.getMGroupNickname();
        } else if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        }
    } else {
        if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        }
    }
    if (mIconView != null) {
        ChatUtils.getInstance().showProfileAvatar(profile, mIconView, ICON_CONFIG);
    }
}
if (mIconView != null) {
    mIconView.setOnClickListener(v -> {
        if (mMaxMessage.isReceiveMsg()) {

function nickname

inline String nickname()

用户昵称

Return: std::string

Example:

    private void initUser(BMXUserProfile profile) {

        String name = profile.username();
        if (name.length() > MAX_NAME_LENGTH){
            name = name.substring(0,MAX_NAME_LENGTH) + "...";
        }
        String nickName = profile.nickname();
        if (nickName.length() > MAX_NICKNAME_LENGTH){
            nickName = nickName.substring(0,MAX_NICKNAME_LENGTH) + "...";
        }
//        String publicInfo = profile.publicInfo();
        ChatUtils.getInstance().showProfileAvatar(profile, mUserIcon, mConfig);
        long userId = profile.userId();
        mUserName.setText(TextUtils.isEmpty(name) ? "" : getString(R.string.username_colon)+ name);
        mNickName.setText(TextUtils.isEmpty(nickName) ? getString(R.string.please_set_a_nickname) : nickName);
        mUserId.setText(userId <= 0 ? "" : "ID:" + userId);
//        mUserPubInfo.setText(getString(R.string.personalized_signature) + (TextUtils.isEmpty(publicInfo) ? getString(R.string.welcome_to_set_your_signature) : publicInfo));
        // push
        BMXUserProfile.MessageSetting setting = profile.messageSetting();
        boolean isPush = setting != null && setting.getMPushEnabled();
private void initUser(BMXUserProfile profile) {
    long id = profile.userId();
    String nickName = profile.nickname();
    ChatUtils.getInstance().showProfileAvatar(profile, mUserIcon, mConfig);
    mUserId.setEndContent(String.valueOf(id));
    mSetName.setEndContent(TextUtils.isEmpty(nickName) ? "" : nickName);
    showBindPhone(profile.mobilePhone());
    String publicInfo = profile.publicInfo();
    if (TextUtils.isEmpty(publicInfo)) {
        mTvPublic.setVisibility(View.GONE);
        mLinePublic.setVisibility(View.GONE);
    } else {
        mTvPublic.setVisibility(View.VISIBLE);
        mLinePublic.setVisibility(View.VISIBLE);
        mTvPublic.setText(publicInfo);
    }
    String privateInfo = profile.privateInfo();
    if (TextUtils.isEmpty(privateInfo)) {
        mTvPrivate.setVisibility(View.GONE);
        mLinePrivate.setVisibility(View.GONE);
    if (mIconView != null) {
        ChatUtils.getInstance().showRosterAvatar(item, mIconView, ICON_CONFIG);
    }
} else {
    BMXUserProfile profile = RosterFetcher.getFetcher().getProfile();
    if (group) {
        //如果是群  需要获取群成员名称
        BMXGroup.Member member = GroupManager.getInstance().getMemberByDB(mMaxMessage.conversationId(), mMaxMessage.fromId());
        if (member != null && !TextUtils.isEmpty(member.getMGroupNickname())) {
            userName = member.getMGroupNickname();
        } else if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        }
    } else {
        if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        ChatUtils.getInstance().showRosterAvatar(item, mIconView, ICON_CONFIG);
    }
} else {
    BMXUserProfile profile = RosterFetcher.getFetcher().getProfile();
    if (group) {
        //如果是群  需要获取群成员名称
        BMXGroup.Member member = GroupManager.getInstance().getMemberByDB(mMaxMessage.conversationId(), mMaxMessage.fromId());
        if (member != null && !TextUtils.isEmpty(member.getMGroupNickname())) {
            userName = member.getMGroupNickname();
        } else if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        }
    } else {
        if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
    //如果是群  需要获取群成员名称
    BMXGroup.Member member = GroupManager.getInstance().getMemberByDB(mMaxMessage.conversationId(), mMaxMessage.fromId());
    if (member != null && !TextUtils.isEmpty(member.getMGroupNickname())) {
        userName = member.getMGroupNickname();
    } else if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
        userName = profile.nickname();
    } else if (profile != null) {
        userName = profile.username();
    }
} else {
    if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
        userName = profile.nickname();
    } else if (profile != null) {
        userName = profile.username();
    }
}
if (mIconView != null) {
    ChatUtils.getInstance().showProfileAvatar(profile, mIconView, ICON_CONFIG);
}
        BMXGroup.Member member = GroupManager.getInstance().getMemberByDB(mMaxMessage.conversationId(), mMaxMessage.fromId());
        if (member != null && !TextUtils.isEmpty(member.getMGroupNickname())) {
            userName = member.getMGroupNickname();
        } else if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        }
    } else {
        if (profile != null && !TextUtils.isEmpty(profile.nickname())) {
            userName = profile.nickname();
        } else if (profile != null) {
            userName = profile.username();
        }
    }
    if (mIconView != null) {
        ChatUtils.getInstance().showProfileAvatar(profile, mIconView, ICON_CONFIG);
    }
}
if (mIconView != null) {

function avatarRatelUrl

inline String avatarRatelUrl()

用户头像ratel服务器地址

Return: std::string

Example:

function avatarUrl

inline String avatarUrl()

用户头像

Return: std::string

Example:

function avatarPath

inline String avatarPath()

用户头像本地存储路径

Return: std::string

Example:

if (profile == null) {
    BMImageLoader.getInstance().display(imageView, "", config);
    return;
}
// 对需要展示的view加入缓存 防止在页面频繁刷新 view复用的时候展示错乱
String avatarUrl = "";
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
        && new File(profile.avatarThumbnailPath()).exists()
        && new File(profile.avatarThumbnailPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarThumbnailPath();
} else if (!TextUtils.isEmpty(profile.avatarPath())
        && new File(profile.avatarPath()).exists()
        && new File(profile.avatarPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarPath();
} else {
    downloadProfileAvatar(profile, imageView, config);
}
BMImageLoader.getInstance().display(imageView, avatarUrl, config);
    BMImageLoader.getInstance().display(imageView, "", config);
    return;
}
// 对需要展示的view加入缓存 防止在页面频繁刷新 view复用的时候展示错乱
String avatarUrl = "";
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
        && new File(profile.avatarThumbnailPath()).exists()
        && new File(profile.avatarThumbnailPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarThumbnailPath();
} else if (!TextUtils.isEmpty(profile.avatarPath())
        && new File(profile.avatarPath()).exists()
        && new File(profile.avatarPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarPath();
} else {
    downloadProfileAvatar(profile, imageView, config);
}
BMImageLoader.getInstance().display(imageView, avatarUrl, config);
    return;
}
// 对需要展示的view加入缓存 防止在页面频繁刷新 view复用的时候展示错乱
String avatarUrl = "";
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
        && new File(profile.avatarThumbnailPath()).exists()
        && new File(profile.avatarThumbnailPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarThumbnailPath();
} else if (!TextUtils.isEmpty(profile.avatarPath())
        && new File(profile.avatarPath()).exists()
        && new File(profile.avatarPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarPath();
} else {
    downloadProfileAvatar(profile, imageView, config);
}
BMImageLoader.getInstance().display(imageView, avatarUrl, config);
}
// 对需要展示的view加入缓存 防止在页面频繁刷新 view复用的时候展示错乱
String avatarUrl = "";
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
        && new File(profile.avatarThumbnailPath()).exists()
        && new File(profile.avatarThumbnailPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarThumbnailPath();
} else if (!TextUtils.isEmpty(profile.avatarPath())
        && new File(profile.avatarPath()).exists()
        && new File(profile.avatarPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarPath();
} else {
    downloadProfileAvatar(profile, imageView, config);
}
BMImageLoader.getInstance().display(imageView, avatarUrl, config);
} else if (!TextUtils.isEmpty(profile.avatarPath())
&& new File(profile.avatarPath()).exists()
&& new File(profile.avatarPath()).isFile()) {
avatarUrl = "file://" + profile.avatarPath();

function avatarThumbnailPath

inline String avatarThumbnailPath()

用户头像缩略图本地存储路径

Return: std::string

Example:

    ImageRequestConfig config) {
if (imageView == null) {
    return;
}
if (profile == null) {
    BMImageLoader.getInstance().display(imageView, "", config);
    return;
}
// 对需要展示的view加入缓存 防止在页面频繁刷新 view复用的时候展示错乱
String avatarUrl = "";
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
        && new File(profile.avatarThumbnailPath()).exists()
        && new File(profile.avatarThumbnailPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarThumbnailPath();
} else if (!TextUtils.isEmpty(profile.avatarPath())
        && new File(profile.avatarPath()).exists()
        && new File(profile.avatarPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarPath();
} else {
    downloadProfileAvatar(profile, imageView, config);
if (imageView == null) {
    return;
}
if (profile == null) {
    BMImageLoader.getInstance().display(imageView, "", config);
    return;
}
// 对需要展示的view加入缓存 防止在页面频繁刷新 view复用的时候展示错乱
String avatarUrl = "";
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
        && new File(profile.avatarThumbnailPath()).exists()
        && new File(profile.avatarThumbnailPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarThumbnailPath();
} else if (!TextUtils.isEmpty(profile.avatarPath())
        && new File(profile.avatarPath()).exists()
        && new File(profile.avatarPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarPath();
} else {
    downloadProfileAvatar(profile, imageView, config);
    return;
}
if (profile == null) {
    BMImageLoader.getInstance().display(imageView, "", config);
    return;
}
// 对需要展示的view加入缓存 防止在页面频繁刷新 view复用的时候展示错乱
String avatarUrl = "";
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
        && new File(profile.avatarThumbnailPath()).exists()
        && new File(profile.avatarThumbnailPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarThumbnailPath();
} else if (!TextUtils.isEmpty(profile.avatarPath())
        && new File(profile.avatarPath()).exists()
        && new File(profile.avatarPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarPath();
} else {
    downloadProfileAvatar(profile, imageView, config);
}
BMImageLoader.getInstance().display(imageView, avatarUrl, config);
}
if (profile == null) {
    BMImageLoader.getInstance().display(imageView, "", config);
    return;
}
// 对需要展示的view加入缓存 防止在页面频繁刷新 view复用的时候展示错乱
String avatarUrl = "";
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
        && new File(profile.avatarThumbnailPath()).exists()
        && new File(profile.avatarThumbnailPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarThumbnailPath();
} else if (!TextUtils.isEmpty(profile.avatarPath())
        && new File(profile.avatarPath()).exists()
        && new File(profile.avatarPath()).isFile()) {
    avatarUrl = "file://" + profile.avatarPath();
} else {
    downloadProfileAvatar(profile, imageView, config);
}
BMImageLoader.getInstance().display(imageView, avatarUrl, config);
if (!TextUtils.isEmpty(profile.avatarThumbnailPath())
&& new File(profile.avatarThumbnailPath()).exists()
&& new File(profile.avatarThumbnailPath()).isFile()) {
avatarUrl = "file://" + profile.avatarThumbnailPath();

function mobilePhone

inline String mobilePhone()

用户手机

Return: std::string

Example:

private void initUser(BMXUserProfile profile) {
    long id = profile.userId();
    String nickName = profile.nickname();
    ChatUtils.getInstance().showProfileAvatar(profile, mUserIcon, mConfig);
    mUserId.setEndContent(String.valueOf(id));
    mSetName.setEndContent(TextUtils.isEmpty(nickName) ? "" : nickName);
    showBindPhone(profile.mobilePhone());
    String publicInfo = profile.publicInfo();
    if (TextUtils.isEmpty(publicInfo)) {
        mTvPublic.setVisibility(View.GONE);
        mLinePublic.setVisibility(View.GONE);
    } else {
        mTvPublic.setVisibility(View.VISIBLE);
        mLinePublic.setVisibility(View.VISIBLE);
        mTvPublic.setText(publicInfo);
    }
    String privateInfo = profile.privateInfo();
    if (TextUtils.isEmpty(privateInfo)) {
        mTvPrivate.setVisibility(View.GONE);
        mLinePrivate.setVisibility(View.GONE);

function email

inline String email()

用户邮箱

Return: std::string

Example:

function publicInfo

inline String publicInfo()

用户公开扩展信息,好友可见

Return: JSON(std::string)

Example:

private void initUser(BMXUserProfile profile) {
    long id = profile.userId();
    String nickName = profile.nickname();
    ChatUtils.getInstance().showProfileAvatar(profile, mUserIcon, mConfig);
    mUserId.setEndContent(String.valueOf(id));
    mSetName.setEndContent(TextUtils.isEmpty(nickName) ? "" : nickName);
    showBindPhone(profile.mobilePhone());
    String publicInfo = profile.publicInfo();
    if (TextUtils.isEmpty(publicInfo)) {
        mTvPublic.setVisibility(View.GONE);
        mLinePublic.setVisibility(View.GONE);
    } else {
        mTvPublic.setVisibility(View.VISIBLE);
        mLinePublic.setVisibility(View.VISIBLE);
        mTvPublic.setText(publicInfo);
    }
    String privateInfo = profile.privateInfo();
    if (TextUtils.isEmpty(privateInfo)) {
        mTvPrivate.setVisibility(View.GONE);
        mLinePrivate.setVisibility(View.GONE);

function privateInfo

inline String privateInfo()

用户私有扩展信息,好友不可见

Return: JSON(std::string)

Example:

showBindPhone(profile.mobilePhone());
String publicInfo = profile.publicInfo();
if (TextUtils.isEmpty(publicInfo)) {
    mTvPublic.setVisibility(View.GONE);
    mLinePublic.setVisibility(View.GONE);
} else {
    mTvPublic.setVisibility(View.VISIBLE);
    mLinePublic.setVisibility(View.VISIBLE);
    mTvPublic.setText(publicInfo);
}
String privateInfo = profile.privateInfo();
if (TextUtils.isEmpty(privateInfo)) {
    mTvPrivate.setVisibility(View.GONE);
    mLinePrivate.setVisibility(View.GONE);
} else {
    mTvPrivate.setVisibility(View.VISIBLE);
    mLinePrivate.setVisibility(View.VISIBLE);
    mTvPrivate.setText(privateInfo);
}

function addFriendAuthMode

inline BMXUserProfile.AddFriendAuthMode addFriendAuthMode()

加好友校验方式

Return: [AddFriendAuthMode]

Example:

String privateInfo = profile.privateInfo();
if (TextUtils.isEmpty(privateInfo)) {
    mTvPrivate.setVisibility(View.GONE);
    mLinePrivate.setVisibility(View.GONE);
} else {
    mTvPrivate.setVisibility(View.VISIBLE);
    mLinePrivate.setVisibility(View.VISIBLE);
    mTvPrivate.setText(privateInfo);
}

BMXUserProfile.AddFriendAuthMode mode = profile.addFriendAuthMode();
bindAddFriendAuth("", mode);
bindAddFriendAuthQuestion(profile.authQuestion());
showBindWeChat();

function authQuestion

inline BMXUserProfile.AuthQuestion authQuestion()

添加好友时的验证问题

Return: AuthQuestion

Example:

    mTvPrivate.setVisibility(View.GONE);
    mLinePrivate.setVisibility(View.GONE);
} else {
    mTvPrivate.setVisibility(View.VISIBLE);
    mLinePrivate.setVisibility(View.VISIBLE);
    mTvPrivate.setText(privateInfo);
}

BMXUserProfile.AddFriendAuthMode mode = profile.addFriendAuthMode();
bindAddFriendAuth("", mode);
bindAddFriendAuthQuestion(profile.authQuestion());
showBindWeChat();

function messageSetting

inline BMXUserProfile.MessageSetting messageSetting()

用户消息设定

Return: MessageSetting

Example:

            nickName = nickName.substring(0,MAX_NICKNAME_LENGTH) + "...";
        }
//        String publicInfo = profile.publicInfo();
        ChatUtils.getInstance().showProfileAvatar(profile, mUserIcon, mConfig);
        long userId = profile.userId();
        mUserName.setText(TextUtils.isEmpty(name) ? "" : getString(R.string.username_colon)+ name);
        mNickName.setText(TextUtils.isEmpty(nickName) ? getString(R.string.please_set_a_nickname) : nickName);
        mUserId.setText(userId <= 0 ? "" : "ID:" + userId);
//        mUserPubInfo.setText(getString(R.string.personalized_signature) + (TextUtils.isEmpty(publicInfo) ? getString(R.string.welcome_to_set_your_signature) : publicInfo));
        // push
        BMXUserProfile.MessageSetting setting = profile.messageSetting();
        boolean isPush = setting != null && setting.getMPushEnabled();
        boolean isPushDetail = setting != null && setting.getMPushDetail();
        boolean isPushSound = setting != null && setting.getMNotificationSound();
        boolean isPushVibrate = setting != null && setting.getMNotificationVibrate();
        mSettingPush.setCheckStatus(isPush);
        mPushDetail.setCheckStatus(isPushDetail);
        if (isPush) {
            mPushSoundView.setVisibility(View.VISIBLE);
            mPushVibrateView.setVisibility(View.VISIBLE);

function isAutoAcceptGroupInvite

inline boolean isAutoAcceptGroupInvite()

收到群组邀请进群时是否自动同意进群

Return: bool

Protected Functions Documentation

Example:

    mPushVibrateView.setVisibility(View.GONE);
}
boolean isAutoDownload = setting != null && setting.getMAutoDownloadAttachment();
autoDownloadAttachment.setCheckStatus(isAutoDownload);

String pushName = setting != null && !TextUtils.isEmpty(setting.getMPushNickname())
        ? setting.getMPushNickname()
        : "";
mPushName.setEndContent(pushName);

autoAcceptGroupInvite.setCheckStatus(profile.isAutoAcceptGroupInvite());
// 是否多端提示 默认false
boolean tips = SharePreferenceUtils.getInstance().getDevTips();
otherDevTips.setCheckStatus(tips);

function BMXUserProfile

inline BMXUserProfile(
    long cPtr,
    boolean cMemoryOwn
)

Example:

function finalize

inline void finalize()

Example:

function getCPtr

static inline long getCPtr(
    BMXUserProfile obj
)

Public Attributes Documentation

variable swigCPtr

transient long swigCPtr;

Example:


Updated on 2022-01-26 at 17:18:31 +0800

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

results matching ""

    No results matching ""