public abstract class TuEditMultipleFragmentBase extends TuImageResultFragment
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuEditMultipleFragmentBase() |
限定符和类型 | 方法和说明 |
---|---|
void |
appendHistory(java.io.File temp)
添加历史记录
|
protected void |
asyncEditWithResult(TuSdkResult result)
异步处理图片
|
protected android.graphics.Bitmap |
asyncLoadImage()
异步加载图片
|
protected void |
asyncLoadImageCompleted(android.graphics.Bitmap image)
异步加载图片完成
|
protected void |
asyncLoadStepImage(java.io.File file)
异步加载历史记录图片
|
protected void |
asyncLoadStepImage(java.io.File file,
boolean isShowHub)
异步加载历史记录图片
|
protected void |
clearAllSteps()
清空所有记录
|
protected void |
clearSteps(java.util.List<java.io.File> list)
清除步骤记录
|
protected java.util.List<java.io.File> |
getBrushies() |
protected java.util.List<java.io.File> |
getHistories() |
java.io.File |
getLastSteps()
获取最后一个步骤
|
protected int |
getLimitHistoryCount()
获取限制的最大历史记录
|
int |
getLimitSideSize()
最大输出图片边长 (默认:0, 不限制图片宽高)
|
java.util.List<TuEditActionType> |
getModules()
功能模块列表 TuEditActionType (默认全部加载, TuEditActionType.multipleActionTypes())
|
abstract int[] |
getRatioTypes()
获取可用的比例类型列表 (默认:RatioType.ratioTyp)
|
protected void |
handleAutoAdjust()
发送自动校色请求
|
protected void |
handleCompleteButton()
完成按钮
|
protected void |
handleStepNextButton()
点击前进事件
|
protected void |
handleStepPrevButton()
点击后退事件
|
boolean |
isDisableStepsSave()
是否禁用操作步骤记录
|
boolean |
isLimitForScreen()
最大输出图片按照设备屏幕 (默认:true, 如果设置了LimitSideSize, 将忽略LimitForScreen)
|
protected void |
loadView(android.view.ViewGroup view)
loadView
|
void |
onDestroyView()
视图销毁,删除临时文件
|
protected abstract void |
onRefreshStepStates(int histories,
int brushies)
刷新操作步骤状态
|
protected void |
refreshStepStates()
刷新操作步骤状态
|
protected void |
setBrushies(java.util.List<java.io.File> brushies)
set丢弃记录
|
void |
setDisableStepsSave(boolean mDisableStepsSave)
是否禁用操作步骤记录
|
abstract void |
setDisplayImage(android.graphics.Bitmap image)
设置显示的图片
|
protected void |
setHistories(java.util.List<java.io.File> histories)
set历史记录
|
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())
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
getCuterImage, getCuterImage, getImage, getImageDisplaySize, getImageSqlInfo, getPreview, getTempFilePath, handleTest, isAutoRemoveTemp, isShowResultPreview, loadImageWithThread, loadOrginImage, postProcessWithImage, preProcessWithImage, processingImage, setAutoRemoveTemp, setImage, setImageSqlInfo, setShowResultPreview, setTempFilePath, showResultPreview
addWaterMarkToImage, asyncNotifyProcessing, asyncProcessingIfNeedSave, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToAlbum, isSaveToTemp, notifyProcessing, 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, 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 void setDisplayImage(android.graphics.Bitmap image)
public abstract int[] getRatioTypes()
protected abstract void onRefreshStepStates(int histories, int brushies)
histories
- 历史记录数brushies
- 丢弃的记录数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()
TuImageResultFragment
onDestroyView
在类中 TuImageResultFragment
protected final void refreshStepStates()
protected void clearAllSteps()
protected void clearSteps(java.util.List<java.io.File> list)
protected void setHistories(java.util.List<java.io.File> histories)
protected java.util.List<java.io.File> getHistories()
protected void setBrushies(java.util.List<java.io.File> brushies)
protected java.util.List<java.io.File> getBrushies()
protected void handleStepPrevButton()
protected void handleStepNextButton()
protected void asyncLoadStepImage(java.io.File file)
protected void asyncLoadStepImage(java.io.File file, boolean isShowHub)
file
- 历史记录图片isShowHub
- 是否显示loadingpublic java.io.File getLastSteps()
public void appendHistory(java.io.File temp)
protected android.graphics.Bitmap asyncLoadImage()
asyncLoadImage
在类中 TuImageResultFragment
protected void asyncLoadImageCompleted(android.graphics.Bitmap image)
protected void handleAutoAdjust()
protected void handleCompleteButton()
protected void asyncEditWithResult(TuSdkResult result)