public class TuEditStickerFragment extends TuEditStickerFragmentBase implements TuStickerOnlineFragment.TuStickerOnlineFragmentDelegate, TuStickerChooseFragment.TuStickerChooseFragmentDelegate, StickerBarView.StickerBarViewDelegate
限定符和类型 | 类和说明 |
---|---|
static interface |
TuEditStickerFragment.TuEditStickerFragmentDelegate
图片编辑贴纸选择控制器委托
|
限定符和类型 | 字段和说明 |
---|---|
protected android.view.View.OnClickListener |
mButtonClickListener
按钮点击事件
|
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuEditStickerFragment()
图片编辑贴纸选择控制器
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
asyncLoadImageCompleted(android.graphics.Bitmap image)
异步加载图片完成
|
protected boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
TuSdkImageButton |
getCancelButton()
取消按钮
|
java.util.List<StickerCategory> |
getCategories()
贴纸分类列表
|
TuSdkImageButton |
getCompleteButton()
完成按钮
|
TuMaskRegionView |
getCutRegionView()
裁剪选区视图
|
TuEditStickerFragment.TuEditStickerFragmentDelegate |
getDelegate()
图片编辑贴纸选择控制器委托
|
int |
getGridHeight()
单元格高度
|
int |
getGridLayoutId()
单元格布局资源ID
|
int |
getGridPadding()
单元格间距
|
int |
getGridWidth()
单元格宽度
|
android.widget.ImageView |
getImageView()
图片视图
|
static int |
getLayoutId()
布局ID
|
TuSdkImageButton |
getListButton()
列表按钮
|
TuSdkImageButton |
getOnlineButton()
在线按钮
|
StickerBarView |
getStickerBarView()
贴纸栏视图
|
StickerView |
getStickerView()
贴纸视图
|
StickerView.StickerViewDelegate |
getStickerViewDelegate()
贴纸视图委托
|
protected void |
handleListButton()
开启完整贴纸选择列表
|
protected void |
handleOnlineButton()
开启在线贴纸视图
|
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 |
onStickerBarViewEmpty(StickerBarView view,
StickerCategory cate)
选择一个空分类
|
void |
onStickerBarViewSelected(StickerBarView view,
StickerData data)
选中一个贴纸数据
|
void |
onTuStickerChooseFragmentSelected(TuStickerChooseFragment fragment,
StickerData data)
选中贴纸
|
void |
onTuStickerOnlineFragmentSelected(TuStickerOnlineFragment fragment,
StickerData data)
选中一个贴纸
|
void |
setCategories(java.util.List<StickerCategory> mCategories)
贴纸分类列表
|
void |
setDelegate(TuEditStickerFragment.TuEditStickerFragmentDelegate mDelegate)
图片编辑贴纸选择控制器委托
|
void |
setGridHeight(int mGridHeight)
单元格高度
|
void |
setGridLayoutId(int mGridLayoutId)
单元格布局资源ID
|
void |
setGridPadding(int mGridPadding)
单元格间距
|
void |
setGridWidth(int mGridWidth)
单元格宽度
|
protected void |
setImageRegionMask(android.graphics.Bitmap image)
设置图片选区遮罩
|
void |
setStickerViewDelegate(StickerView.StickerViewDelegate mStickerViewDelegate)
贴纸视图委托
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
appendStickerItem, appendStickerItem, asyncEditWithResult, handleBackButton, handleCompleteButton
asyncLoadImage, 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, 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 static int getLayoutId()
public TuEditStickerFragment.TuEditStickerFragmentDelegate getDelegate()
public void setDelegate(TuEditStickerFragment.TuEditStickerFragmentDelegate 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 int getGridWidth()
public void setGridWidth(int mGridWidth)
public int getGridHeight()
public void setGridHeight(int mGridHeight)
public int getGridPadding()
public void setGridPadding(int mGridPadding)
public int getGridLayoutId()
{@link org.lasque.tusdk.impl.components.widget.sticker.StickerListGrid}
public void setGridLayoutId(int mGridLayoutId)
resId
- 单元格布局资源ID (默认: tusdk_impl_component_widget_sticker_list_grid){@link org.lasque.tusdk.impl.components.widget.sticker.StickerListGrid}
public java.util.List<StickerCategory> getCategories()
public void setCategories(java.util.List<StickerCategory> mCategories)
public StickerView.StickerViewDelegate getStickerViewDelegate()
public void setStickerViewDelegate(StickerView.StickerViewDelegate mStickerViewDelegate)
public android.widget.ImageView getImageView()
public StickerView getStickerView()
getStickerView
在类中 TuEditStickerFragmentBase
public TuMaskRegionView getCutRegionView()
public StickerBarView getStickerBarView()
public TuSdkImageButton getCancelButton()
public TuSdkImageButton getCompleteButton()
public TuSdkImageButton getListButton()
public TuSdkImageButton getOnlineButton()
protected void dispatcherViewClick(android.view.View v)
protected void loadView(android.view.ViewGroup view)
loadView
在类中 TuEditStickerFragmentBase
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
viewDidLoad
在类中 TuEditStickerFragmentBase
protected void asyncLoadImageCompleted(android.graphics.Bitmap image)
protected void setImageRegionMask(android.graphics.Bitmap image)
protected void handleListButton()
public void onTuStickerChooseFragmentSelected(TuStickerChooseFragment fragment, StickerData data)
onTuStickerChooseFragmentSelected
在接口中 TuStickerChooseFragment.TuStickerChooseFragmentDelegate
fragment
- 控制器data
- 贴纸元素protected void handleOnlineButton()
public void onTuStickerOnlineFragmentSelected(TuStickerOnlineFragment fragment, StickerData data)
onTuStickerOnlineFragmentSelected
在接口中 TuStickerOnlineFragment.TuStickerOnlineFragmentDelegate
fragment
- 在线贴纸控制器data
- 贴纸数据public void onStickerBarViewSelected(StickerBarView view, StickerData data)
onStickerBarViewSelected
在接口中 StickerBarView.StickerBarViewDelegate
view
- 贴纸栏视图data
- 贴纸数据public void onStickerBarViewEmpty(StickerBarView view, StickerCategory cate)