public class TuEditFragment extends TuEditFragmentBase implements TuEditCuterFragment.TuEditCuterFragmentDelegate, TuEditWipeAndFilterFragment.TuEditWipeAndFilterFragmentDelegate, TuEditTurnFragment.TuEditTurnAndCutFragmentDelegate, TuFilterResultFragment.TuFilterResultFragmentDelegate
限定符和类型 | 类和说明 |
---|---|
static interface |
TuEditFragment.TuGeeV2EditFragmentDelegate |
限定符和类型 | 字段和说明 |
---|---|
protected android.view.View.OnClickListener |
mButtonClickListener
按钮点击事件
|
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuEditFragment() |
限定符和类型 | 方法和说明 |
---|---|
protected android.view.View |
buildActionButton(int index,
TuEditActionType type)
创建动作按钮视图
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
TuEditOption |
editOption()
获取编辑配置选项
|
protected TuImageResultFragment |
fragmentByEditActionType(TuEditActionType editActionTye,
TuSdkResult preResult)
根据编辑类型返回编辑控制器
|
android.widget.LinearLayout |
getActionsWrap()
动作列表包装视图
|
TuSdkImageButton |
getCancelButton()
取消按钮
|
TuSdkImageButton |
getCompleteButton()
完成按钮
|
TuEditFragment.TuGeeV2EditFragmentDelegate |
getDelegate()
图片编辑裁切旋转控制器委托
|
static int |
getLayoutId()
布局ID
|
protected void |
handleResult(TuSdkResult result)
处理返回结果
|
boolean |
isSaveToTemp()
isSaveToTemp和isSaveToAlbum 必须要有一个为true
|
protected void |
notifyProcessing(TuSdkResult result)
通知处理完成
|
void |
onComponentError(TuFragment fragment,
TuSdkResult result,
java.lang.Error error)
获取组件返回错误信息
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
void |
onTuEditCuterFragmentEdited(TuEditCuterFragment fragment,
TuSdkResult result)
图片编辑完成
|
boolean |
onTuEditCuterFragmentEditedAsync(TuEditCuterFragment fragment,
TuSdkResult result)
图片编辑完成 (异步方法)
|
void |
onTuEditTurnAndCutFragmentEdited(TuEditTurnFragment fragment,
TuSdkResult result)
TuEditTurnAndCutFragmentDelegate
|
boolean |
onTuEditTurnAndCutFragmentEditedAsync(TuEditTurnFragment fragment,
TuSdkResult result)
图片编辑完成 (异步方法)
|
void |
onTuEditWipeAndFilterFragmentEdited(TuEditWipeAndFilterFragment fragment,
TuSdkResult result)
TuEditWipeAndFilterFragmentDelegate
|
boolean |
onTuEditWipeAndFilterFragmentEditedAsync(TuEditWipeAndFilterFragment fragment,
TuSdkResult result)
图片编辑完成 (异步方法)
|
void |
onTuFilterResultFragmentEdited(TuFilterResultFragment fragment,
TuSdkResult result)
TuEditApertureFragmentDelegate
|
boolean |
onTuFilterResultFragmentEditedAsync(TuFilterResultFragment fragment,
TuSdkResult result)
图片编辑完成 (异步方法)
|
void |
processingImage()
应用当前功能模块的修改
|
protected void |
saveEditResult(TuSdkResult result)
完成按钮
|
void |
setDelegate(TuEditFragment.TuGeeV2EditFragmentDelegate mDelegate)
图片编辑裁切旋转控制器委托
|
void |
setEditOption(TuEditOption mEditOption)
设置编辑控制器配置选项
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
asyncNotifyProcessing, getModules, loadView, setModules
asyncLoadImage, asyncLoadImageCompleted, getCuterImage, getCuterImage, getImage, getImageDisplaySize, getImageSqlInfo, getPreview, getTempFilePath, handleTest, isAutoRemoveTemp, isShowResultPreview, loadImageWithThread, loadOrginImage, onDestroyView, postProcessWithImage, preProcessWithImage, setAutoRemoveTemp, setImage, setImageSqlInfo, setShowResultPreview, setTempFilePath, showResultPreview
addWaterMarkToImage, asyncProcessingIfNeedSave, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToAlbum, saveToAlbum, saveToTemp, setOutputCompress, setSaveToAlbum, setSaveToAlbumName, setSaveToTemp, setWaterMarkOption
getErrorListener, getRequestPermissionCode, getRequiredPermissions, hasRequiredPermission, notifyError, onPermissionGrantedResult, onRequestPermissionsResult, requestRequiredPermissions, setErrorListener
alert, alert, filpModalNavigationActivity, filpModalNavigationActivity, hubDismiss, hubDismissRightNow, hubError, hubError, hubStatus, hubStatus, hubSuccess, hubSuccess, initCreateView, onDetach, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushModalNavigationActivity, pushModalNavigationActivity, setNavLeftButton, setNavLeftButton, setNavLeftButton, setNavLeftHighLightButton, setNavLeftHighLightButton, setNavRightButton, setNavRightButton, setNavRightButton, setNavRightHighLightButton, setNavRightHighLightButton
addOrientationListener, backStackEntryCount, bindSoftInputEvent, dismissActivity, dismissActivityWithAnim, dismissActivityWithAnim, equalViewIds, filpModalNavigationActivity, getDismissAnimType, getNavButton, getOriginFragment, getResColor, getResString, getResString, getResString, getResString, getRootView, getRootViewLayoutId, getSdkActivity, getTitle, getViewById, getViewById, getViewId, isBackButtonShowed, isFragmentPause, isFullScreen, isSupportSlideBack, navigatorBarBackAction, navigatorBarCancelAction, navigatorBarHeight, navigatorBarLeftAction, navigatorBarLoaded, navigatorBarRightAction, navSearchViewSearch, navSearchViewSetDelegate, navSegmentedAddTexts, navSegmentedAddTexts, navSegmentedSetDelegate, navSegmentedSetected, onAttach, onBackForSlide, onBackPressed, onCreateAnimation, onDestroy, onFragmentAnimationEnd, onKeyUp, onNavigatorBarButtonClicked, onOrientationChanged, onPause, onPauseFragment, onPreDraw, onRefreshData, onResume, onResumeFragment, popFragment, popFragment, popFragmentRoot, presentActivity, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushFragment, refreshOriginFragment, replaceFragment, runOnUiThread, setIsSupportSlideBack, setNavigatorBarId, setNavigatorBarOnButtom, setNavLeftButton, setNavLeftButton, setNavRightButton, setNavRightButton, setOriginFragment, setRequestedOrientation, setRootViewLayoutId, setTitle, setTitle, showBackButton, showNavigatorBar, showView, showViewIn, wantFullScreen
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
public static int getLayoutId()
public TuEditOption editOption()
public void setEditOption(TuEditOption mEditOption)
mEditOption
- public TuEditFragment.TuGeeV2EditFragmentDelegate getDelegate()
public void setDelegate(TuEditFragment.TuGeeV2EditFragmentDelegate mDelegate)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
TuFragment
onCreateView
在类中 TuFragment
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
viewDidLoad
在类中 TuEditFragmentBase
public boolean isSaveToTemp()
isSaveToTemp
在类中 TuResultFragment
public android.widget.LinearLayout getActionsWrap()
public TuSdkImageButton getCancelButton()
public TuSdkImageButton getCompleteButton()
protected android.view.View buildActionButton(int index, TuEditActionType type)
protected void dispatcherViewClick(android.view.View v)
public void processingImage()
processingImage
在类中 TuImageResultFragment
protected TuImageResultFragment fragmentByEditActionType(TuEditActionType editActionTye, TuSdkResult preResult)
editActionTye
- 编辑类型preResult
- 上一个处理结果protected void handleResult(TuSdkResult result)
result
- public void onTuEditCuterFragmentEdited(TuEditCuterFragment fragment, TuSdkResult result)
onTuEditCuterFragmentEdited
在接口中 TuEditCuterFragment.TuEditCuterFragmentDelegate
fragment
- 图片编辑裁切旋转控制器result
- 图片编辑裁切旋转控制器处理结果public boolean onTuEditCuterFragmentEditedAsync(TuEditCuterFragment fragment, TuSdkResult result)
onTuEditCuterFragmentEditedAsync
在接口中 TuEditCuterFragment.TuEditCuterFragmentDelegate
fragment
- 图片编辑裁切旋转控制器result
- 图片编辑裁切旋转控制器处理结果public void onComponentError(TuFragment fragment, TuSdkResult result, java.lang.Error error)
TuSdkComponentErrorListener
onComponentError
在接口中 TuSdkComponentErrorListener
result
- 返回结果error
- 异常信息protected void saveEditResult(TuSdkResult result)
protected void notifyProcessing(TuSdkResult result)
notifyProcessing
在类中 TuEditFragmentBase
public void onTuEditWipeAndFilterFragmentEdited(TuEditWipeAndFilterFragment fragment, TuSdkResult result)
onTuEditWipeAndFilterFragmentEdited
在接口中 TuEditWipeAndFilterFragment.TuEditWipeAndFilterFragmentDelegate
fragment
- 图片编辑模糊控制器result
- 处理结果public boolean onTuEditWipeAndFilterFragmentEditedAsync(TuEditWipeAndFilterFragment fragment, TuSdkResult result)
onTuEditWipeAndFilterFragmentEditedAsync
在接口中 TuEditWipeAndFilterFragment.TuEditWipeAndFilterFragmentDelegate
fragment
- 图片编辑模糊控制器result
- 器处理结果public void onTuEditTurnAndCutFragmentEdited(TuEditTurnFragment fragment, TuSdkResult result)
onTuEditTurnAndCutFragmentEdited
在接口中 TuEditTurnFragment.TuEditTurnAndCutFragmentDelegate
fragment
- 旋转和裁剪视图控制器result
- 旋转和裁剪视图控制器处理结果public boolean onTuEditTurnAndCutFragmentEditedAsync(TuEditTurnFragment fragment, TuSdkResult result)
onTuEditTurnAndCutFragmentEditedAsync
在接口中 TuEditTurnFragment.TuEditTurnAndCutFragmentDelegate
fragment
- 旋转和裁剪视图控制器result
- 旋转和裁剪视图控制器处理结果public void onTuFilterResultFragmentEdited(TuFilterResultFragment fragment, TuSdkResult result)
onTuFilterResultFragmentEdited
在接口中 TuFilterResultFragment.TuFilterResultFragmentDelegate
fragment
- 滤镜控制器result
- 处理结果public boolean onTuFilterResultFragmentEditedAsync(TuFilterResultFragment fragment, TuSdkResult result)
onTuFilterResultFragmentEditedAsync
在接口中 TuFilterResultFragment.TuFilterResultFragmentDelegate
fragment
- 滤镜控制器result
- 处理结果