public abstract class TuEditMultiplePlaygroundFragmentBase extends TuResultFragment
限定符和类型 | 类和说明 |
---|---|
protected static interface |
TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener
草稿图片加载监听器
|
permissionAlertDelegate
构造器和说明 |
---|
TuEditMultiplePlaygroundFragmentBase() |
限定符和类型 | 方法和说明 |
---|---|
void |
appendHistory(java.io.File temp)
向当前草稿追加历史记录
|
protected void |
asyncEditWithResult(TuSdkResult result)
异步处理图片
|
protected void |
asyncLoadImage(android.widget.ImageView imageView,
java.io.File file,
boolean isShowHub,
TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener listener)
异步加载图片信息
|
protected void |
asyncLoadImage(android.widget.ImageView imageView,
TuDraftImageWrap draftImage,
boolean isShowHub,
TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener listener)
异步加载图片信息
|
protected void |
asyncProcessingIfNeedSave(TuSdkResult result)
异步处理如果需要保存文件 (默认完成后执行:notifyProcessing(TuSdkResult result))
|
protected int |
changedCount()
检查被编辑过的数量
|
protected void |
clearAllSteps()
清空所有草稿记录
|
protected void |
clearSteps(java.util.List<java.io.File> list)
清除步骤记录
|
java.util.List<TuDraftImageWrap> |
getDraftImageList()
获取需要被美化的草稿列表
|
org.lasque.tusdk.core.struct.TuSdkSize |
getImageDisplaySize()
获取显示大小
|
java.io.File |
getLastSteps()
获取当前编辑草稿的最后一个历史记录
|
protected int |
getLimitHistoryCount()
获取限制的最大历史记录
|
int |
getLimitSideSize()
最大输出图片边长 (默认:0, 不限制图片宽高)
|
java.util.List<TuEditActionType> |
getModules()
功能模块列表 TuEditActionType (默认全部加载, TuEditActionType.multipleActionTypes())
|
TuDraftImageWrap |
getProcessingDraftImageWrap()
正在被处理的图片信息
|
int |
getProcessingDraftIndex()
当前被处理的草稿索引
|
abstract int[] |
getRatioTypes()
获取可用的比例类型列表 (默认:RatioType.ratioTyp)
|
protected void |
handleAutoAdjust()
发送自动校色请求
|
protected void |
handleCompleteButton()
处理完成事件
|
protected void |
handleStepNextButton(android.widget.ImageView imageView,
TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener listener)
点击前进事件
|
protected void |
handleStepPrevButton(android.widget.ImageView imageView,
TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener listener)
点击后退事件
|
boolean |
isDisableStepsSave()
是否禁用操作步骤记录
|
boolean |
isLimitForScreen()
最大输出图片按照设备屏幕 (默认:true, 如果设置了LimitSideSize, 将忽略LimitForScreen)
|
boolean |
isSaveToAlbum()
是否保存到相册 (isSaveToTemp 和 isSaveToAlbum 必须有一个为true)
|
protected android.graphics.Bitmap |
loadDraftImage(TuDraftImageWrap draftImage)
加载草稿图片
|
protected void |
loadView(android.view.ViewGroup view)
loadView
|
void |
onDestroyView() |
protected abstract void |
onRefreshStepStates(int histories,
int brushies)
刷新操作步骤状态
|
protected abstract boolean |
prepareSave(int totalCount,
int changedCount)
准备保存时调用
|
protected abstract boolean |
prepareSaveDraftImage(TuDraftImageWrap imageWrap)
准备保存某张草稿图片是调用
|
protected void |
refreshStepStates()
刷新操作步骤状态
|
protected void |
saveToAlbum(TuSdkResult result)
将草稿图片保存到相册
|
protected void |
saveToTemp(TuSdkResult result)
将草稿图片保存到临时文件
|
void |
setDisableStepsSave(boolean mDisableStepsSave)
是否禁用操作步骤记录
|
void |
setDraftImageList(java.util.List<TuDraftImageWrap> draftImageList)
设置需要美化的图片信息
|
void |
setLimitForScreen(boolean mLimitForScreen)
最大输出图片按照设备屏幕 (默认:true, 如果设置了LimitSideSize, 将忽略LimitForScreen)
|
protected void |
setLimitHistoryCount(int mLimitHistoryCount) |
void |
setLimitSideSize(int mLimitSideSize)
最大输出图片边长 (默认:0, 不限制图片宽高)
|
void |
setModules(java.util.List<TuEditActionType> mModules)
功能模块列表 TuEditActionType (默认全部加载, TuEditActionType.multipleActionTypes())
|
void |
setProcessingDraftImageIndex(int processingDraftIndex)
设置当前草稿索引
|
protected void |
setProcessingDraftImageWrap(TuDraftImageWrap processingImageWrap) |
protected void |
showProgress(int totalCount,
int progressingIndex)
处理进度
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
addWaterMarkToImage, asyncNotifyProcessing, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToTemp, notifyProcessing, 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, onCreateView, 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 abstract int[] getRatioTypes()
protected abstract void onRefreshStepStates(int histories, int brushies)
histories
- 历史记录数brushies
- 丢弃的记录数protected abstract boolean prepareSave(int totalCount, int changedCount)
totalCount
- 图片总数量changedCount
- 图片被修改的数量protected abstract boolean prepareSaveDraftImage(TuDraftImageWrap imageWrap)
imageWrap
- 保存的草稿信息public final int getLimitSideSize()
public final void setLimitSideSize(int mLimitSideSize)
public final boolean isLimitForScreen()
public final void setLimitForScreen(boolean mLimitForScreen)
protected int getLimitHistoryCount()
protected void setLimitHistoryCount(int mLimitHistoryCount)
public boolean isDisableStepsSave()
public void setDisableStepsSave(boolean mDisableStepsSave)
public java.util.List<TuEditActionType> getModules()
public void setModules(java.util.List<TuEditActionType> mModules)
protected void loadView(android.view.ViewGroup view)
loadView
在类中 TuSdkFragment
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
viewDidLoad
在类中 TuSdkFragment
public void onDestroyView()
onDestroyView
在类中 TuResultFragment
protected final void refreshStepStates()
protected void clearAllSteps()
protected void clearSteps(java.util.List<java.io.File> list)
public java.util.List<TuDraftImageWrap> getDraftImageList()
public void setDraftImageList(java.util.List<TuDraftImageWrap> draftImageList)
draftImageList
- public TuDraftImageWrap getProcessingDraftImageWrap()
protected void setProcessingDraftImageWrap(TuDraftImageWrap processingImageWrap)
public int getProcessingDraftIndex()
public void setProcessingDraftImageIndex(int processingDraftIndex)
processingDraftIndex
- protected void handleStepPrevButton(android.widget.ImageView imageView, TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener listener)
protected void handleStepNextButton(android.widget.ImageView imageView, TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener listener)
protected android.graphics.Bitmap loadDraftImage(TuDraftImageWrap draftImage)
draftImage
- 草稿信息public org.lasque.tusdk.core.struct.TuSdkSize getImageDisplaySize()
protected void asyncLoadImage(android.widget.ImageView imageView, java.io.File file, boolean isShowHub, TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener listener)
imageView
- draftImage
- protected void asyncLoadImage(android.widget.ImageView imageView, TuDraftImageWrap draftImage, boolean isShowHub, TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener listener)
imageView
- 加载完成后显示图片的视图isShowHub
- 是否显示loadingdraftImage
- 加载图片的草稿信息public java.io.File getLastSteps()
public void appendHistory(java.io.File temp)
temp
- protected void handleAutoAdjust()
protected void handleCompleteButton()
protected int changedCount()
protected void asyncEditWithResult(TuSdkResult result)
public boolean isSaveToAlbum()
isSaveToAlbum
在类中 TuResultFragment
protected void showProgress(int totalCount, int progressingIndex)
totalCount
- progressingIndex
- protected void saveToAlbum(TuSdkResult result)
saveToAlbum
在类中 TuResultFragment
protected void saveToTemp(TuSdkResult result)
saveToTemp
在类中 TuResultFragment
result
- 处理结果protected void asyncProcessingIfNeedSave(TuSdkResult result)