-
- All Implemented Interfaces:
-
com.petterp.floatingx.listener.control.IFxAppControl,com.petterp.floatingx.listener.control.IFxControl
public final class FxAppControlImp extends FxBasisControlImp<FxAppHelper, FxAppPlatformProvider> implements IFxAppControl
全局控制器
-
-
Field Summary
Fields Modifier and Type Field Description private final IFxConfigControlconfigControl
-
Constructor Summary
Constructors Constructor Description FxAppControlImp(FxAppHelper helper)
-
Method Summary
Modifier and Type Method Description IFxConfigControlgetConfigControl()FxAppPlatformProvidercreatePlatformProvider(FxAppHelper f)ActivitygetBindActivity()获得当前浮窗绑定的activity,不要手动保留此activity,以避免泄漏 ps: system浮窗时,将始终返回栈顶 activity UnitupdateView(View view)更新当前View Unitmove(Float x, Float y, Boolean useAnimation)移动浮窗到指定位置,该方法会帮助你处理越界问题 -
Methods inherited from class com.petterp.floatingx.imp.app.FxAppControlImp
cancel, createAnimationProvider, createConfigProvider, getManagerView, getView, getViewHolder, getX, getY, hide, initProvider, isShow, move, moveByVector, moveByVector, setClickListener, setClickListener, setLongClickListener, show, updateConfig, updateView, updateView, updateViewContent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FxAppControlImp
FxAppControlImp(FxAppHelper helper)
-
-
Method Detail
-
getConfigControl
IFxConfigControl getConfigControl()
-
createPlatformProvider
FxAppPlatformProvider createPlatformProvider(FxAppHelper f)
-
getBindActivity
Activity getBindActivity()
获得当前浮窗绑定的activity,不要手动保留此activity,以避免泄漏 ps: system浮窗时,将始终返回栈顶 activity
-
updateView
Unit updateView(View view)
更新当前View
-
-
-
-