public class TuEditComponent extends TuEditComponentBase implements TuEditEntryFragment.TuEditEntryFragmentDelegate, TuEditFilterFragment.TuEditFilterFragmentDelegate, TuEditCuterFragment.TuEditCuterFragmentDelegate, TuStickerChooseFragment.TuStickerChooseFragmentDelegate
TuSdkComponent.TuSdkComponentDelegate
构造器和说明 |
---|
TuEditComponent(android.app.Activity activity)
图片编辑组件
|
TuEditComponent(TuFragment fragment)
图片编辑组件
|
getImage, getImageSqlInfo, getTempFilePath, setImage, setImageSqlInfo, setTempFilePath
activity, alert, alert, getDelegate, getResString, getResString, isAutoDismissWhenCompleted, onComponentError, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushModalNavigationActivity, pushModalNavigationActivity, setAutoDismissWhenCompleted, setDelegate, showAlertIfCannotSaveFile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onComponentError
public TuEditComponent(TuFragment fragment)
fragment
- public TuEditComponent(android.app.Activity activity)
public TuEditComponentOption componentOption()
public void setComponentOption(TuEditComponentOption mComponentOption)
mComponentOption
- public static TuEditComponent component(TuFragment fragment, TuSdkComponent.TuSdkComponentDelegate delegate)
fragment
- 控制器delegate
- 组件委托public static TuEditComponent component(android.app.Activity activity, TuSdkComponent.TuSdkComponentDelegate delegate)
activity
- 内容上下文delegate
- 组件委托protected void initComponent()
TuSdkComponent
initComponent
在类中 TuSdkComponent
public TuEditComponent showComponent()
TuSdkComponent
showComponent
在类中 TuSdkComponent
protected void notifyResult(TuSdkResult result, java.lang.Error error, TuFragment lastFragment)
notifyResult
在类中 TuSdkComponent
result
- 返回结果error
- 异常信息lastFragment
- 最后显示的控制器public void onTuEditEntryFragmentEdited(TuEditEntryFragment fragment, TuSdkResult result)
onTuEditEntryFragmentEdited
在接口中 TuEditEntryFragment.TuEditEntryFragmentDelegate
fragment
- 图片编辑入口控制器result
- 旋图片编辑入口控制器处理结果public boolean onTuEditEntryFragmentEditedAsync(TuEditEntryFragment fragment, TuSdkResult result)
onTuEditEntryFragmentEditedAsync
在接口中 TuEditEntryFragment.TuEditEntryFragmentDelegate
fragment
- 图片编辑入口控制器result
- 旋图片编辑入口控制器处理结果public void onTuEditEntryFragmentAction(TuEditEntryFragment fragment, TuEditActionType actionType)
onTuEditEntryFragmentAction
在接口中 TuEditEntryFragment.TuEditEntryFragmentDelegate
fragment
- 图片编辑入口控制器actionType
- 图片编辑动作类型protected void handleCutButton(TuEditEntryFragment editFragment)
public void onTuEditCuterFragmentEdited(TuEditCuterFragment fragment, TuSdkResult result)
onTuEditCuterFragmentEdited
在接口中 TuEditCuterFragment.TuEditCuterFragmentDelegate
fragment
- 图片编辑裁切旋转控制器result
- 图片编辑裁切旋转控制器处理结果public boolean onTuEditCuterFragmentEditedAsync(TuEditCuterFragment fragment, TuSdkResult result)
onTuEditCuterFragmentEditedAsync
在接口中 TuEditCuterFragment.TuEditCuterFragmentDelegate
fragment
- 图片编辑裁切旋转控制器result
- 图片编辑裁切旋转控制器处理结果protected void handleFilterButton(TuEditEntryFragment editFragment)
public void onTuEditFilterFragmentEdited(TuEditFilterFragment fragment, TuSdkResult result)
onTuEditFilterFragmentEdited
在接口中 TuEditFilterFragment.TuEditFilterFragmentDelegate
fragment
- 图片编辑滤镜控制器result
- 图片编辑滤镜控制器处理结果public boolean onTuEditFilterFragmentEditedAsync(TuEditFilterFragment fragment, TuSdkResult result)
onTuEditFilterFragmentEditedAsync
在接口中 TuEditFilterFragment.TuEditFilterFragmentDelegate
fragment
- 图片编辑滤镜控制器result
- 图片编辑滤镜控制器处理结果protected void handleStickerButton(TuEditEntryFragment editFragment)
public void onTuStickerChooseFragmentSelected(TuStickerChooseFragment fragment, StickerData data)
onTuStickerChooseFragmentSelected
在接口中 TuStickerChooseFragment.TuStickerChooseFragmentDelegate
fragment
- 控制器data
- 贴纸元素