public class TuAvatarComponent extends TuAlbumComponent implements TuCameraFragment.TuCameraFragmentDelegate, TuEditTurnAndCutFragment.TuEditTurnAndCutFragmentDelegate
TuSdkComponent.TuSdkComponentDelegate
限定符和类型 | 字段和说明 |
---|---|
protected TuSdkActionSheet.ActionSheetClickDelegate |
mActionSheetClickDelegate
点击ActionSheet
|
构造器和说明 |
---|
TuAvatarComponent(android.app.Activity activity)
头像设置组件
|
限定符和类型 | 方法和说明 |
---|---|
static TuAvatarComponent |
component(android.app.Activity activity,
TuSdkComponent.TuSdkComponentDelegate delegate)
启动头像设置组件
|
TuAvatarComponentOption |
componentOption()
头像设置配置选项
|
protected void |
handleShowCamera()
显示相机
|
protected void |
initComponent()
初始化组件
|
void |
onTuAlbumDemand(TuCameraFragment fragment)
请求从相机界面跳转到相册界面。
|
void |
onTuCameraFragmentCaptured(TuCameraFragment fragment,
TuSdkResult result)
获取一个拍摄结果
|
boolean |
onTuCameraFragmentCapturedAsync(TuCameraFragment fragment,
TuSdkResult result)
获取一个拍摄结果 (异步方法)
|
void |
onTuEditTurnAndCutFragmentEdited(TuEditTurnAndCutFragment fragment,
TuSdkResult result)
图片编辑完成
|
boolean |
onTuEditTurnAndCutFragmentEditedAsync(TuEditTurnAndCutFragment fragment,
TuSdkResult result)
图片编辑完成 (异步方法)
|
void |
onTuPhotoFragmentSelected(TuPhotoListFragment fragment,
ImageSqlInfo imageSqlInfo)
选中相片
|
TuAvatarComponent |
showComponent()
显示组件
|
handleShowAlbum, onTuAlbumFragmentSelected, setComponentOption
activity, alert, alert, getDelegate, getResString, getResString, isAutoDismissWhenCompleted, notifyResult, onComponentError, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushModalNavigationActivity, pushModalNavigationActivity, setAutoDismissWhenCompleted, setDelegate, showAlertIfCannotSaveFile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onComponentError
protected TuSdkActionSheet.ActionSheetClickDelegate mActionSheetClickDelegate
public TuAvatarComponentOption componentOption()
componentOption
在类中 TuAlbumComponent
public static TuAvatarComponent component(android.app.Activity activity, TuSdkComponent.TuSdkComponentDelegate delegate)
activity
- 内容上下文delegate
- 组件委托protected void initComponent()
initComponent
在类中 TuAlbumComponent
public TuAvatarComponent showComponent()
showComponent
在类中 TuAlbumComponent
protected void handleShowCamera()
public void onTuCameraFragmentCaptured(TuCameraFragment fragment, TuSdkResult result)
onTuCameraFragmentCaptured
在接口中 TuCameraFragment.TuCameraFragmentDelegate
fragment
- 默认相机视图控制器result
- 拍摄结果public boolean onTuCameraFragmentCapturedAsync(TuCameraFragment fragment, TuSdkResult result)
onTuCameraFragmentCapturedAsync
在接口中 TuCameraFragment.TuCameraFragmentDelegate
fragment
- 默认相机视图控制器result
- 拍摄结果public void onTuAlbumDemand(TuCameraFragment fragment)
onTuAlbumDemand
在接口中 TuCameraFragment.TuCameraFragmentDelegate
fragment
- 系统相册控制器public void onTuPhotoFragmentSelected(TuPhotoListFragment fragment, ImageSqlInfo imageSqlInfo)
onTuPhotoFragmentSelected
在接口中 TuPhotoListFragment.TuPhotoListFragmentDelegate
onTuPhotoFragmentSelected
在类中 TuAlbumComponent
fragment
- 系统相册控制器imageSqlInfo
- 相片信息public void onTuEditTurnAndCutFragmentEdited(TuEditTurnAndCutFragment fragment, TuSdkResult result)
onTuEditTurnAndCutFragmentEdited
在接口中 TuEditTurnAndCutFragment.TuEditTurnAndCutFragmentDelegate
fragment
- 旋转和裁剪视图控制器result
- 旋转和裁剪视图控制器处理结果public boolean onTuEditTurnAndCutFragmentEditedAsync(TuEditTurnAndCutFragment fragment, TuSdkResult result)
onTuEditTurnAndCutFragmentEditedAsync
在接口中 TuEditTurnAndCutFragment.TuEditTurnAndCutFragmentDelegate
fragment
- 旋转和裁剪视图控制器result
- 旋转和裁剪视图控制器处理结果