public class TuEditEntryFragment extends TuEditEntryFragmentBase
限定符和类型 | 类和说明 |
---|---|
static interface |
TuEditEntryFragment.TuEditEntryFragmentDelegate
图片编辑入口控制器委托
|
限定符和类型 | 字段和说明 |
---|---|
protected android.view.View.OnClickListener |
mButtonClickListener
按钮点击事件
|
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuEditEntryFragment()
图片编辑入口控制器
|
限定符和类型 | 方法和说明 |
---|---|
protected android.graphics.Bitmap |
asyncLoadImage()
异步加载图片
|
protected void |
asyncLoadImageCompleted(android.graphics.Bitmap image)
异步加载图片完成
|
protected boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
TuSdkImageButton |
getBackButton()
后退按钮
|
TuSdkImageButton |
getCompleteButton()
完成按钮
|
TuSdkTextButton |
getCutButton()
裁切入口按钮
|
TuSdkResult |
getCuterResult()
获取裁剪结果
|
TuMaskRegionView |
getCutRegionView()
裁剪选区视图
|
TuEditEntryFragment.TuEditEntryFragmentDelegate |
getDelegate()
图片编辑入口控制器委托
|
TuSdkTextButton |
getFilterButton()
滤镜入口按钮
|
android.widget.RelativeLayout |
getImageWrapView()
图片包装视图
|
static int |
getLayoutId()
布局ID
|
int |
getLimitSideSize()
最大输出图片边长 (默认:0, 不限制图片宽高)
|
int |
getRatioType()
裁剪比例类型 (默认:RatioType.ratio_all)
|
int[] |
getRatioTypeList()
裁剪比例类型列表 ( 优先级 RatioTypeList > RatioType, 默认:RatioType.ratioTypes)
|
int[] |
getRatioTypes()
获取显示的比例类型列表
|
TuSdkTextButton |
getStickerButton()
贴纸入口按钮
|
StickerView |
getStickerView()
贴纸视图
|
StickerView.StickerViewDelegate |
getStickerViewDelegate()
贴纸视图委托
|
protected void |
handleAction(TuEditActionType actionType)
处理编辑动作
|
boolean |
isEnableCuter()
开启裁剪旋转功能
|
boolean |
isEnableFilter()
开启滤镜功能
|
boolean |
isEnableSticker()
开启贴纸功能
|
boolean |
isLimitForScreen()
最大输出图片按照设备屏幕 (默认:true, 如果设置了LimitSideSize, 将忽略LimitForScreen)
|
protected void |
loadView(android.view.ViewGroup view)
loadView
|
void |
navigatorBarLeftAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
取消按钮
|
protected void |
navigatorBarLoaded(TuSdkNavigatorBar navigatorBar)
导航栏加载完成
|
protected void |
notifyProcessing(TuSdkResult result)
通知处理结果
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
protected void |
onPermissionGrantedResult(boolean permissionGranted)
是否已被授予权限
|
void |
setCuterResult(TuSdkResult result)
设置裁剪结果
|
void |
setDelegate(TuEditEntryFragment.TuEditEntryFragmentDelegate mDelegate)
图片编辑入口控制器委托
|
void |
setEnableCuter(boolean mEnableCuter)
开启裁剪旋转功能
|
void |
setEnableFilter(boolean mEnableFilter)
开启滤镜功能
|
void |
setEnableSticker(boolean mEnableSticker)
开启贴纸功能
|
protected void |
setImageRegionMask(android.graphics.Bitmap image)
设置图片选区遮罩
|
void |
setLimitForScreen(boolean mLimitForScreen)
最大输出图片按照设备屏幕 (默认:true, 如果设置了LimitSideSize, 将忽略LimitForScreen)
|
void |
setLimitSideSize(int mLimitSideSize)
最大输出图片边长 (默认:0, 不限制图片宽高)
|
void |
setRatioType(int mRatioType)
裁剪比例类型 (默认:RatioType.ratio_all)
|
void |
setRatioTypeList(int[] mRatioTypeList)
裁剪比例类型列表 ( 优先级 RatioTypeList > RatioType, 默认:RatioType.ratioTypes)
|
void |
setStickerViewDelegate(StickerView.StickerViewDelegate mStickerViewDelegate)
贴纸视图委托
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
appendStickerItem, asyncEditWithResult, getCuterImage, getFilterImage, getFilterWrap, getImageView, handleCompleteButton, setFilterWrap
getCuterImage, getCuterImage, getImage, getImageDisplaySize, getImageSqlInfo, getPreview, getTempFilePath, handleTest, isAutoRemoveTemp, isShowResultPreview, loadImageWithThread, loadOrginImage, onDestroyView, postProcessWithImage, preProcessWithImage, processingImage, setAutoRemoveTemp, setImage, setImageSqlInfo, setShowResultPreview, setTempFilePath, showResultPreview
addWaterMarkToImage, asyncProcessingIfNeedSave, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToAlbum, isSaveToTemp, saveToAlbum, saveToTemp, 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, 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 TuEditEntryFragment.TuEditEntryFragmentDelegate getDelegate()
public void setDelegate(TuEditEntryFragment.TuEditEntryFragmentDelegate mDelegate)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
TuFragment
onCreateView
在类中 TuFragment
protected void notifyProcessing(TuSdkResult result)
notifyProcessing
在类中 TuResultFragment
protected boolean asyncNotifyProcessing(TuSdkResult result)
asyncNotifyProcessing
在类中 TuResultFragment
result
- SDK处理结果public boolean isEnableCuter()
public void setEnableCuter(boolean mEnableCuter)
public boolean isEnableFilter()
public void setEnableFilter(boolean mEnableFilter)
public boolean isEnableSticker()
public void setEnableSticker(boolean mEnableSticker)
public int getLimitSideSize()
getLimitSideSize
在类中 TuEditEntryFragmentBase
public void setLimitSideSize(int mLimitSideSize)
public boolean isLimitForScreen()
isLimitForScreen
在类中 TuEditEntryFragmentBase
public void setLimitForScreen(boolean mLimitForScreen)
public int getRatioType()
public void setRatioType(int mRatioType)
public final int[] getRatioTypeList()
public final void setRatioTypeList(int[] mRatioTypeList)
public final int[] getRatioTypes()
getRatioTypes
在类中 TuEditEntryFragmentBase
public StickerView.StickerViewDelegate getStickerViewDelegate()
public void setStickerViewDelegate(StickerView.StickerViewDelegate mStickerViewDelegate)
public android.widget.RelativeLayout getImageWrapView()
getImageWrapView
在类中 TuEditEntryFragmentBase
public TuSdkImageButton getBackButton()
public StickerView getStickerView()
getStickerView
在类中 TuEditEntryFragmentBase
public TuMaskRegionView getCutRegionView()
getCutRegionView
在类中 TuEditEntryFragmentBase
public TuSdkImageButton getCompleteButton()
public TuSdkTextButton getCutButton()
public TuSdkTextButton getFilterButton()
public TuSdkTextButton getStickerButton()
protected void dispatcherViewClick(android.view.View v)
protected void loadView(android.view.ViewGroup view)
loadView
在类中 TuEditEntryFragmentBase
protected void navigatorBarLoaded(TuSdkNavigatorBar navigatorBar)
TuSdkFragment
navigatorBarLoaded
在类中 TuSdkFragment
public void navigatorBarLeftAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
navigatorBarLeftAction
在类中 TuSdkFragment
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
viewDidLoad
在类中 TuEditEntryFragmentBase
protected void onPermissionGrantedResult(boolean permissionGranted)
onPermissionGrantedResult
在类中 TuComponentFragment
permissionGranted
- protected android.graphics.Bitmap asyncLoadImage()
asyncLoadImage
在类中 TuImageResultFragment
protected void asyncLoadImageCompleted(android.graphics.Bitmap image)
protected void setImageRegionMask(android.graphics.Bitmap image)
protected void handleAction(TuEditActionType actionType)
actionType
- 图片编辑动作类型public TuSdkResult getCuterResult()
getCuterResult
在类中 TuEditEntryFragmentBase
public void setCuterResult(TuSdkResult result)