public class TuEditMultipleFragment extends TuEditMultiplePlaygroundFragmentBase
限定符和类型 | 类和说明 |
---|---|
static interface |
TuEditMultipleFragment.TuEditMultipleFragmentDelegate
多功能图像编辑控制器委托
|
TuEditMultiplePlaygroundFragmentBase.DraftImageLoadListener
限定符和类型 | 字段和说明 |
---|---|
protected android.view.View.OnClickListener |
mAppendDraftImageClickListener
添加图片item点击事件
|
protected android.view.View.OnClickListener |
mButtonClickListener
按钮点击事件
|
protected android.view.View.OnClickListener |
mDraftImageClickListener
图片列表item点击事件
|
permissionAlertDelegate
构造器和说明 |
---|
TuEditMultipleFragment()
图片编辑入口控制器
|
限定符和类型 | 方法和说明 |
---|---|
protected int |
actionButtonWidth()
计算动作按钮的宽度
|
void |
appendDraftImages(java.util.List<TuDraftImageWrap> images)
追加草稿图片
|
void |
appendHistory(java.io.File temp)
追加历史记录
|
protected void |
asyncEditWithResult(TuSdkResult result)
异步处理图片
|
protected boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected android.view.View |
buildActionButton(TuEditActionType type,
int index)
创建动作按钮视图
|
protected void |
buildAppendDraftImageButton()
构建追加图片按钮
|
protected void |
buildDraftImageButtons()
构建草稿图片列表
|
protected TuSdkImageButton |
buildDraftImageView(TuDraftImageWrap draftImage)
构建草稿图片视图
|
void |
changeDraftImageByIndex(int index,
boolean isScollViewPager)
设置当前选中的草稿
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
android.widget.LinearLayout |
getActionsWrap()
动作列表包装视图
|
TuSdkImageView |
getAutoAdjustButton()
自动校色按钮
|
TuSdkImageButton |
getCancelButton()
下一步按钮
|
TuEditMultipleFragment.TuEditMultipleFragmentDelegate |
getDelegate()
多功能图像编辑控制器委托
|
TuSdkTextButton |
getDoneButton()
返回按钮
|
org.lasque.tusdk.geev2.impl.components.edit.TuEditMultipleFragment.DraftViewPagerAdapter |
getDraftViewPagerAdapter()
ViewPager Adapter
|
android.widget.LinearLayout |
getImagesWrap()
图片列表视图
|
static int |
getLayoutId()
布局ID
|
int |
getMaxEditImageCount()
最大编辑数量 默认9张 最大10张
|
java.util.List<TuEditActionType> |
getModules()
功能模块列表 TuEditActionType (默认全部加载, TuEditActionType.multipleActionTypes())
|
int |
getPageCellLayoutId()
ViewPager行视图页面布局ID
|
int |
getRatioType()
裁剪比例类型 (默认:RatioType.ratio_all)
|
int[] |
getRatioTypeList()
裁剪比例类型列表 ( 优先级 RatioTypeList > RatioType, 默认:RatioType.ratioTypes)
|
int[] |
getRatioTypes()
获取显示的比例类型列表
|
TuSdkImageView |
getStepNextButton()
下一步按钮
|
TuSdkImageView |
getStepPrevButton()
返回前一步按钮
|
android.widget.LinearLayout |
getStepwrap()
操作步骤包装视图
|
TuViewPager |
getViewPager()
可左右滑动图片显示的ViewPager
|
protected void |
handleAction(TuEditActionType actionType)
处理编辑动作
|
void |
handleAddDraftImage()
处理添加图片事件
|
java.lang.Boolean |
isEnableAppendImage()
是否启用追加图片
|
java.lang.Boolean |
isEnableSaveWhenNoChange()
没有更改的图片是否保存
|
boolean |
isEnableSlidePage()
ViwePager是否可以左右滑动切换 (默认:true)
|
protected void |
loadView(android.view.ViewGroup view)
loadView
|
protected void |
notifyProcessing(TuSdkResult result)
通知处理结果
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
void |
onDestroyView() |
protected void |
onPermissionGrantedResult(boolean permissionGranted)
是否已被授予权限
|
protected void |
onRefreshStepStates(int histories,
int brushies)
刷新操作步骤状态
|
protected boolean |
prepareSave(int totalCount,
int changedCount)
准备保存图片
|
protected boolean |
prepareSaveDraftImage(TuDraftImageWrap imageWrap)
准备保存某张图片
|
void |
setCellLayoutId(int cellLayoutId)
ViewPager行视图布局ID
|
void |
setDelegate(TuEditMultipleFragment.TuEditMultipleFragmentDelegate mDelegate)
多功能图像编辑控制器委托
|
void |
setEnableAppendImage(java.lang.Boolean mEnableAppendImage)
设置是否启用追加图片操作
|
void |
setEnableSaveWhenNoChange(java.lang.Boolean mEnableSaveWhenNoChange)
设置没有没有更改的图片是否保存
|
void |
setEnableSlidePage(boolean mEnableSlidePage)
设置ViwePager是否可以左右滑动
|
void |
setMaxEditImageCount(int mMaxEditImageCount) |
void |
setRatioType(int mRatioType)
裁剪比例类型 (默认:RatioType.ratio_all)
|
void |
setRatioTypeList(int[] mRatioTypeList)
裁剪比例类型列表 ( 优先级 RatioTypeList > RatioType, 默认:RatioType.ratioTypes)
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
asyncLoadImage, asyncLoadImage, asyncProcessingIfNeedSave, changedCount, clearAllSteps, clearSteps, getDraftImageList, getImageDisplaySize, getLastSteps, getLimitHistoryCount, getLimitSideSize, getProcessingDraftImageWrap, getProcessingDraftIndex, handleAutoAdjust, handleCompleteButton, handleStepNextButton, handleStepPrevButton, isDisableStepsSave, isLimitForScreen, isSaveToAlbum, loadDraftImage, refreshStepStates, saveToAlbum, saveToTemp, setDisableStepsSave, setDraftImageList, setLimitForScreen, setLimitHistoryCount, setLimitSideSize, setModules, setProcessingDraftImageIndex, setProcessingDraftImageWrap, showProgress
addWaterMarkToImage, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToTemp, setOutputCompress, setSaveToAlbum, setSaveToAlbumName, setSaveToTemp, setWaterMarkOption
getErrorListener, getRequestPermissionCode, getRequiredPermissions, hasRequiredPermission, notifyError, 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
protected android.view.View.OnClickListener mDraftImageClickListener
protected android.view.View.OnClickListener mAppendDraftImageClickListener
protected android.view.View.OnClickListener mButtonClickListener
public static int getLayoutId()
public java.lang.Boolean isEnableAppendImage()
public void setEnableAppendImage(java.lang.Boolean mEnableAppendImage)
mEnableAppendImage
- public java.lang.Boolean isEnableSaveWhenNoChange()
public void setEnableSaveWhenNoChange(java.lang.Boolean mEnableSaveWhenNoChange)
mEnableSaveWhenNoChange
- public int getMaxEditImageCount()
public void setMaxEditImageCount(int mMaxEditImageCount)
public TuEditMultipleFragment.TuEditMultipleFragmentDelegate getDelegate()
public void setDelegate(TuEditMultipleFragment.TuEditMultipleFragmentDelegate mDelegate)
mDelegate
- public int getPageCellLayoutId()
public void setCellLayoutId(int cellLayoutId)
cellLayoutId
- the cellLayoutId to setpublic boolean isEnableSlidePage()
public void setEnableSlidePage(boolean mEnableSlidePage)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
TuFragment
onCreateView
在类中 TuFragment
public void onDestroyView()
protected void notifyProcessing(TuSdkResult result)
notifyProcessing
在类中 TuResultFragment
protected boolean asyncNotifyProcessing(TuSdkResult result)
asyncNotifyProcessing
在类中 TuResultFragment
result
- SDK处理结果public int getRatioType()
public final void setRatioType(int mRatioType)
public final int[] getRatioTypeList()
public final void setRatioTypeList(int[] mRatioTypeList)
public final int[] getRatioTypes()
public TuViewPager getViewPager()
public org.lasque.tusdk.geev2.impl.components.edit.TuEditMultipleFragment.DraftViewPagerAdapter getDraftViewPagerAdapter()
public android.widget.LinearLayout getStepwrap()
public TuSdkImageView getStepPrevButton()
public TuSdkImageButton getCancelButton()
public TuSdkTextButton getDoneButton()
public TuSdkImageView getStepNextButton()
public TuSdkImageView getAutoAdjustButton()
public android.widget.LinearLayout getActionsWrap()
public android.widget.LinearLayout getImagesWrap()
protected void dispatcherViewClick(android.view.View v)
protected boolean prepareSave(int totalCount, int changedCount)
prepareSave
在类中 TuEditMultiplePlaygroundFragmentBase
totalCount
- 图片总数量changedCount
- 变更的图片数量protected boolean prepareSaveDraftImage(TuDraftImageWrap imageWrap)
prepareSaveDraftImage
在类中 TuEditMultiplePlaygroundFragmentBase
imageWrap
- protected void asyncEditWithResult(TuSdkResult result)
public void appendHistory(java.io.File temp)
protected void loadView(android.view.ViewGroup view)
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
public java.util.List<TuEditActionType> getModules()
TuEditMultiplePlaygroundFragmentBase
protected int actionButtonWidth()
protected android.view.View buildActionButton(TuEditActionType type, int index)
protected TuSdkImageButton buildDraftImageView(TuDraftImageWrap draftImage)
draftImage
- protected void buildDraftImageButtons()
protected void buildAppendDraftImageButton()
protected void onPermissionGrantedResult(boolean permissionGranted)
onPermissionGrantedResult
在类中 TuComponentFragment
permissionGranted
- protected void handleAction(TuEditActionType actionType)
actionType
- 图片编辑动作类型public void appendDraftImages(java.util.List<TuDraftImageWrap> images)
images
- public void changeDraftImageByIndex(int index, boolean isScollViewPager)
index
- 草稿索引isScollViewPager
- 是否将ViewPager切换到该indexpublic void handleAddDraftImage()
protected void onRefreshStepStates(int histories, int brushies)
onRefreshStepStates
在类中 TuEditMultiplePlaygroundFragmentBase
histories
- 历史记录数brushies
- 丢弃的记录数