public class TuEditTurnAndCutFragment extends TuEditTurnAndCutFragmentBase
限定符和类型 | 类和说明 |
---|---|
static interface |
TuEditTurnAndCutFragment.TuEditTurnAndCutFragmentDelegate
裁剪与缩放控制器委托
|
mRegionLayoutChangeListener
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuEditTurnAndCutFragment()
裁剪与缩放控制器
|
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected void |
configGroupFilterView(GroupFilterBaseView view)
配置滤镜栏视图
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
android.widget.TextView |
getCompleteButton()
完成按钮
|
TuMaskRegionView |
getCutRegionView()
裁剪选取视图
|
org.lasque.tusdk.core.struct.TuSdkSize |
getCutSize()
需要裁剪的长宽
|
TuEditTurnAndCutFragment.TuEditTurnAndCutFragmentDelegate |
getDelegate()
裁剪与缩放控制器委托
|
int |
getFilterBarHeight()
滤镜组选择栏高度
|
android.widget.ImageView |
getFilterButton()
滤镜按钮
|
java.util.List<java.lang.String> |
getFilterGroup()
需要显示的滤镜名称列表 (如果为空将显示所有自定义滤镜)
|
int |
getFilterTableCellLayoutId()
滤镜列表行视图布局资源ID
|
TuNormalFilterView |
getGroupFilterBar()
裁剪与缩放控制器滤镜视图
|
int |
getGroupFilterCellWidth()
行视图宽度
|
int |
getGroupTableCellLayoutId()
滤镜分组列表行视图布局资源ID
|
android.widget.RelativeLayout |
getImageWrapView()
图片包装视图
|
static int |
getLayoutId()
布局ID
|
android.widget.ImageView |
getMirrorButton()
镜像按钮
|
java.lang.Class<?> |
getOnlineFragmentClazz()
在线滤镜控制器类型 (需要继承Fragment,以及实现TuFilterOnlineFragmentInterface接口)
|
android.widget.ImageView |
getTrunButton()
旋转按钮
|
protected void |
handleFilterButton()
切换滤镜视图显示
|
protected void |
handleMirrorButton()
镜像动作
|
protected void |
handleTrunButton()
旋转动作
|
boolean |
isDisplayFiltersSubtitles()
显示滤镜标题视图
|
boolean |
isEnableFilters()
是否开启滤镜支持 (默认: 关闭)
|
boolean |
isEnableFiltersHistory()
开启用户滤镜历史记录
|
boolean |
isEnableOnlineFilter()
开启在线滤镜
|
boolean |
isRenderFilterThumb()
是否渲染滤镜封面 (使用设置的滤镜直接渲染,需要拥有滤镜列表封面设置权限,请访问TuSDK.com控制台)
|
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)
创建视图
|
void |
setCutSize(org.lasque.tusdk.core.struct.TuSdkSize mCutSize)
需要裁剪的长宽
|
void |
setDelegate(TuEditTurnAndCutFragment.TuEditTurnAndCutFragmentDelegate mDelegate)
裁剪与缩放控制器委托
|
void |
setDisplayFiltersSubtitles(boolean mDisplayFiltersSubtitles)
显示滤镜标题视图
|
void |
setEnableFilters(boolean mEnableFilters)
是否开启滤镜支持 (默认: 关闭)
|
void |
setEnableFiltersHistory(boolean mEnableFiltersHistory)
开启用户滤镜历史记录
|
void |
setEnableOnlineFilter(boolean mEnableOnlineFilter)
开启在线滤镜
|
void |
setFilterBarHeight(int mFilterBarHeight)
滤镜组选择栏高度
|
void |
setFilterGroup(java.util.List<java.lang.String> mFilterGroup)
需要显示的滤镜名称列表 (如果为空将显示所有自定义滤镜)
|
void |
setFilterTableCellLayoutId(int mFilterTableCellLayoutId)
滤镜列表行视图布局资源ID
|
void |
setGroupFilterCellWidth(int mGroupFilterCellWidth)
行视图宽度
|
void |
setGroupTableCellLayoutId(int mGroupTableCellLayoutId)
滤镜分组列表行视图布局资源ID
|
void |
setOnlineFragmentClazz(java.lang.Class<?> mOnlineFragmentClazz)
在线滤镜控制器类型 (需要继承Fragment,以及实现TuFilterOnlineFragmentInterface接口)
|
void |
setRenderFilterThumb(boolean isRender)
是否渲染滤镜封面 (使用设置的滤镜直接渲染,需要拥有滤镜列表封面设置权限,请访问TuSDK.com控制台)
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
asyncEditWithResult, getImageView, getSelectedFilterCode, handleCompleteButton, handleSwitchFilter, onRegionLayoutChanged, processedFilter
asyncLoadImage, asyncLoadImageCompleted, 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, 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, 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 TuEditTurnAndCutFragment.TuEditTurnAndCutFragmentDelegate getDelegate()
public void setDelegate(TuEditTurnAndCutFragment.TuEditTurnAndCutFragmentDelegate 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
result
- SDK处理结果protected boolean asyncNotifyProcessing(TuSdkResult result)
asyncNotifyProcessing
在类中 TuResultFragment
result
- SDK处理结果public boolean isEnableFilters()
public void setEnableFilters(boolean mEnableFilters)
public java.util.List<java.lang.String> getFilterGroup()
public void setFilterGroup(java.util.List<java.lang.String> mFilterGroup)
public org.lasque.tusdk.core.struct.TuSdkSize getCutSize()
getCutSize
在类中 TuEditTurnAndCutFragmentBase
public void setCutSize(org.lasque.tusdk.core.struct.TuSdkSize mCutSize)
public int getGroupFilterCellWidth()
public void setGroupFilterCellWidth(int mGroupFilterCellWidth)
public int getGroupTableCellLayoutId()
{@link org.lasque.tusdk.impl.components.widget.GroupFilterGroupView}
public void setGroupTableCellLayoutId(int mGroupTableCellLayoutId)
滤镜分组列表行视图布局资源ID
- (默认:
tusdk_impl_component_widget_group_filter_group_view,如需自定义请继承自
GroupFilterGroupView){@link org.lasque.tusdk.impl.components.widget.GroupFilterGroupView}
public int getFilterTableCellLayoutId()
{@link org.lasque.tusdk.impl.components.widget.GroupFilterItemView}
public void setFilterTableCellLayoutId(int mFilterTableCellLayoutId)
滤镜列表行视图布局资源ID
- (默认:
tusdk_impl_component_widget_group_filter_item_view,如需自定义请继承自
GroupFilterItemView){@link org.lasque.tusdk.impl.components.widget.GroupFilterItemView}
public int getFilterBarHeight()
public void setFilterBarHeight(int mFilterBarHeight)
public boolean isEnableFiltersHistory()
public void setEnableFiltersHistory(boolean mEnableFiltersHistory)
public boolean isDisplayFiltersSubtitles()
public void setDisplayFiltersSubtitles(boolean mDisplayFiltersSubtitles)
public boolean isEnableOnlineFilter()
public void setEnableOnlineFilter(boolean mEnableOnlineFilter)
public java.lang.Class<?> getOnlineFragmentClazz()
org.lasque.tusdk.modules.components.filter.TuFilterOnlineFragmentInterface}
public void setOnlineFragmentClazz(java.lang.Class<?> mOnlineFragmentClazz)
org.lasque.tusdk.modules.components.filter.TuFilterOnlineFragmentInterface}
public boolean isRenderFilterThumb()
public void setRenderFilterThumb(boolean isRender)
public android.widget.RelativeLayout getImageWrapView()
public TuMaskRegionView getCutRegionView()
public TuNormalFilterView getGroupFilterBar()
protected void configGroupFilterView(GroupFilterBaseView view)
view
- 滤镜分组视图基类public android.widget.ImageView getFilterButton()
public android.widget.ImageView getTrunButton()
public android.widget.ImageView getMirrorButton()
public android.widget.TextView getCompleteButton()
protected void dispatcherViewClick(android.view.View v)
protected void loadView(android.view.ViewGroup view)
loadView
在类中 TuEditTurnAndCutFragmentBase
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
protected void navigatorBarLoaded(TuSdkNavigatorBar navigatorBar)
TuSdkFragment
navigatorBarLoaded
在类中 TuSdkFragment
public void navigatorBarLeftAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
navigatorBarLeftAction
在类中 TuSdkFragment
protected void handleFilterButton()
protected void handleTrunButton()
protected void handleMirrorButton()