本文整理汇总了Java中com.netease.nim.uikit.common.media.picker.PickImageHelper类的典型用法代码示例。如果您正苦于以下问题:Java PickImageHelper类的具体用法?Java PickImageHelper怎么用?Java PickImageHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PickImageHelper类属于com.netease.nim.uikit.common.media.picker包,在下文中一共展示了PickImageHelper类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onClick
import com.netease.nim.uikit.common.media.picker.PickImageHelper; //导入依赖的package包/类
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.head_layout:
PickImageHelper.PickImageOption option = new PickImageHelper.PickImageOption();
option.titleResId = R.string.set_head_image;
option.crop = true;
option.multiSelect = false;
option.cropOutputImageWidth = 720;
option.cropOutputImageHeight = 720;
PickImageHelper.pickImage(UserProfileSettingActivity.this, PICK_AVATAR_REQUEST, option);
break;
case R.id.nick_layout:
UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_NICKNAME,
nickText.getText().toString());
break;
case R.id.gender_layout:
UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_GENDER,
String.valueOf(userInfo.getGenderEnum().getValue()));
break;
case R.id.birth_layout:
UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_BIRTH,
birthText.getText().toString());
break;
case R.id.phone_layout:
UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_PHONE,
phoneText.getText().toString());
break;
case R.id.email_layout:
UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_EMAIL,
emailText.getText().toString());
break;
case R.id.signature_layout:
UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_SIGNATURE,
signatureText.getText().toString());
break;
}
}
示例2: pickPicture
import com.netease.nim.uikit.common.media.picker.PickImageHelper; //导入依赖的package包/类
public void pickPicture(IJavaReplyToJsImageInfo cb) {
this.pickPictureCallback = cb;
PickImageHelper.PickImageOption option = new PickImageHelper.PickImageOption();
option.titleResId = R.string.set_head_image;
option.crop = true;
option.multiSelect = false;
option.cropOutputImageWidth = 720;
option.cropOutputImageHeight = 720;
PickImageHelper.pickImage(JsBridgeActivity.this, IMAGE_PICKER_REQUEST_ID, option);
}
示例3: showSelector
import com.netease.nim.uikit.common.media.picker.PickImageHelper; //导入依赖的package包/类
/**
* 打开图片选择器
*/
private void showSelector(int titleId, final int requestCode) {
PickImageHelper.PickImageOption option = new PickImageHelper.PickImageOption();
option.titleResId = titleId;
option.multiSelect = false;
option.crop = true;
option.cropOutputImageWidth = 720;
option.cropOutputImageHeight = 720;
PickImageHelper.pickImage(AdvancedTeamInfoActivity.this, requestCode, option);
}
示例4: showSelector
import com.netease.nim.uikit.common.media.picker.PickImageHelper; //导入依赖的package包/类
/**
* 打开图片选择器
*/
private void showSelector(int titleId, final int requestCode, final boolean multiSelect, final String outPath) {
PickImageHelper.PickImageOption option = new PickImageHelper.PickImageOption();
option.titleResId = titleId;
option.multiSelect = multiSelect;
option.multiSelectMaxCount = PICK_IMAGE_COUNT;
option.crop = crop;
option.cropOutputImageWidth = PORTRAIT_IMAGE_WIDTH;
option.cropOutputImageHeight = PORTRAIT_IMAGE_WIDTH;
option.outputPath = outPath;
PickImageHelper.pickImage(getActivity(), requestCode, option);
}