public class TuRichEditComponent extends TuSdkComponent
TuSdkComponent.TuSdkComponentDelegate
构造器和说明 |
---|
TuRichEditComponent(android.app.Activity activity) |
TuRichEditComponent(TuFragment fragment) |
限定符和类型 | 方法和说明 |
---|---|
static TuRichEditComponent |
component(android.app.Activity activity,
TuSdkComponent.TuSdkComponentDelegate delegate)
根据上下文 初始化组件
|
static TuRichEditComponent |
component(TuFragment fragment,
TuSdkComponent.TuSdkComponentDelegate delegate)
根据fragment控制器初始化组件
|
TuRichEditComponentOption |
componentOption()
组件配置选项
|
protected void |
initComponent()
初始化组件
|
void |
openAlbumComponent()
打开相册组件
|
void |
openCamera()
打开相机组件
|
boolean |
openMultipleEditComponentWithResult(TuSdkResult result)
打开编辑组件
|
boolean |
openMultipleEditComponentWithResult(TuSdkResult result,
TuFragment sourceFragment)
打开编辑组件
|
TuRichEditComponent |
setAutoDismissWhenCompleted(boolean mAutoDismissWhenCompleted)
是否在组件执行完成后自动关闭组件 (默认:false)
|
void |
setComponentOption(TuRichEditComponentOption componentOption)
设置组件配置项
|
TuSdkComponent |
showComponent()
显示组件 默认开启相册
|
activity, alert, alert, getDelegate, getResString, getResString, isAutoDismissWhenCompleted, notifyResult, onComponentError, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushModalNavigationActivity, pushModalNavigationActivity, setDelegate, showAlertIfCannotSaveFile
public TuRichEditComponent(android.app.Activity activity)
public TuRichEditComponent(TuFragment fragment)
protected void initComponent()
TuSdkComponent
initComponent
在类中 TuSdkComponent
public TuSdkComponent showComponent()
showComponent
在类中 TuSdkComponent
public static TuRichEditComponent component(android.app.Activity activity, TuSdkComponent.TuSdkComponentDelegate delegate)
activity
- public static TuRichEditComponent component(TuFragment fragment, TuSdkComponent.TuSdkComponentDelegate delegate)
fragment
- public TuRichEditComponentOption componentOption()
public void setComponentOption(TuRichEditComponentOption componentOption)
componentOption
- public TuRichEditComponent setAutoDismissWhenCompleted(boolean mAutoDismissWhenCompleted)
TuSdkComponent
public void openAlbumComponent()
public void openCamera()
public boolean openMultipleEditComponentWithResult(TuSdkResult result)
result
- 相机或者相册返回结果public boolean openMultipleEditComponentWithResult(TuSdkResult result, TuFragment sourceFragment)
result
- 相机或者相册返回结果sourceFragment
- 来源控制器