SystemSettingsHelper
java.lang.Object
|—ohos.agp.utils.SystemSettingsHelper
public class SystemSettingsHelper
extends Object用于获取一些系统设置的辅助类。
Since:
5
方法总结
| 修饰符和类型 | 方法 | 描述 |
|---|---|---|
| void | bindTouchWithGesture(boolean bind) | 建立触摸转发和消费过程与手势检测的绑定关系。 |
| static SystemSettingsHelper | getInstance() | 创建单个 SystemSettingsHelper 实例。 |
| boolean | isTouchBoundWithGesture() | 获取手势检测是否绑定到触摸转发和消费过程。 |
| 从类 java.lang.Object 继承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
方法详情
getInstance
public static SystemSettingsHelper getInstance()
创建单个 SystemSettingsHelper 实例。
返回:
返回一个 SystemSettingsHelper 实例。
Since:
7
bindTouchWithGesture
public void bindTouchWithGesture(boolean bind)
建立触摸转发和消费过程与手势检测的绑定关系。
参数:
| 参数名称 | 参数描述 |
|---|---|
| bind | 指示是否绑定关系。 |
Since:
7
isTouchBoundWithGesture
public boolean isTouchBoundWithGesture()
获取手势检测是否绑定到触摸转发和消费过程。
返回:
如果关系建立,则返回 true; 否则返回 false。 默认值是true。
Since:
7
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/162239.html<

