新聞中心
StylusEvent

站在用戶的角度思考問題,與客戶深入溝通,找到三沙網(wǎng)站設(shè)計與三沙網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗,讓設(shè)計與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個性化、用戶體驗好的作品,建站類型包括:網(wǎng)站建設(shè)、做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機端網(wǎng)站、網(wǎng)站推廣、域名注冊、雅安服務(wù)器托管、企業(yè)郵箱。業(yè)務(wù)覆蓋三沙地區(qū)。
java.lang.Object
|---ohos.multimodalinput.event.MultimodalEvent
|---|---ohos.multimodalinput.event.ManipulationEvent
|---|---|---ohos.multimodalinput.event.StylusEvent
public abstract class StylusEvent
extends ManipulationEvent報告觸控筆事件。
報告的事件包含按鈕狀態(tài)更改和觸控筆操作(按下、滑動或抬起)等信息。 目前,一個事件僅支持一個觸控筆動作。
Since:
5
嵌套類摘要
| 從接口 ohos.utils.Sequenceable 繼承的嵌套類/接口 |
|---|
| Sequenceable.ProducerT |
字段摘要
| 修飾符和類型 | 字段 | 描述 |
|---|---|---|
| static int | BUTTON_PRESS | 表示觸控筆按下按鈕。 |
| static int | BUTTON_RELEASE | 表示觸控筆抬起一個按鈕。 |
| static int | FIRST_BUTTON | 指示觸控筆事件中的按鈕狀態(tài)更改。 |
| static int | NONE | 表示手寫筆不對屏幕進行任何操作。 |
| static int | NONE_BUTTON | 指示觸控筆事件中沒有按鈕狀態(tài)更改。 |
| static int | STYLUS_DOWN | 表示觸控筆按在屏幕上。 |
| static int | STYLUS_MOVE | 表示觸控筆在屏幕上滑動。 |
| static int | STYLUS_UP | 表示觸控筆從屏幕上抬起。 |
| 從類 ohos.multimodalinput.event.ManipulationEvent 繼承的字段 |
|---|
| PHASE_CANCEL, PHASE_COMPLETED, PHASE_MOVE, PHASE_NONE, PHASE_START |
| 從類 ohos.multimodalinput.event.MultimodalEvent 繼承的字段 |
|---|
| BUILTIN_KEY, DEFAULT_TYPE, highLevelEvent, KEYBOARD, MOUSE, ROTATION, SPEECH, STYLUS, TOUCH_PANEL, UNSUPPORTED_DEVICE, uuid |
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| StylusEvent() |
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| abstract int | getAction() | 獲取觸控筆動作。 |
| abstract int | getButtons() | 獲取手寫筆的按鈕狀態(tài)變化。 |
| 從類 ohos.multimodalinput.event.ManipulationEvent 繼承的方法 |
|---|
| getForce, getPhase, getPointerCount, getPointerId, getPointerPosition, getPointerScreenPosition, getRadius, getStartTime, setScreenOffset |
| 從類 ohos.multimodalinput.event.MultimodalEvent 繼承的方法 |
|---|
| getDeviceId, getInputDeviceId, getOccurredTime, getSourceDevice, getUuid, isSameEvent, marshalling, unmarshalling |
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 從接口 ohos.utils.Sequenceable 繼承的方法 |
|---|
| hasFileDescriptor |
字段詳細信息
BUTTON_PRESS
public static final int BUTTON_PRESS
表示觸控筆按下按鈕。
Since:
5
BUTTON_RELEASE
public static final int BUTTON_RELEASE
表示觸控筆抬起一個按鈕。
Since:
5
FIRST_BUTTON
public static final int FIRST_BUTTON
指示觸控筆事件中的按鈕狀態(tài)更改。
Since:
5
NONE
public static final int NONE
表示手寫筆不對屏幕進行任何操作。
Since:
5
NONE_BUTTON
public static final int NONE_BUTTON
指示觸控筆事件中沒有按鈕狀態(tài)更改。
Since:
5
STYLUS_DOWN
public static final int STYLUS_DOWN
表示觸控筆按在屏幕上。
Since:
5
STYLUS_MOVE
public static final int STYLUS_MOVE
表示觸控筆在屏幕上滑動。
Since:
5
STYLUS_UP
public static final int STYLUS_UP
表示觸控筆從屏幕上抬起。
Since:
5
構(gòu)造函數(shù)詳細信息
StylusEvent
public StylusEvent()
方法詳情
getAction
public abstract int getAction()
獲取觸控筆動作。
返回:
返回觸控筆動作。 返回值可以是 BUTTON_PRESS、BUTTON_RELEASE、STYLUS_DOWN、STYLUS_MOVE 或 STYLUS_UP。
Since:
5
getButtons
public abstract int getButtons()
獲取手寫筆的按鈕狀態(tài)變化。
返回:
返回手寫筆的按鈕狀態(tài)更改。 返回值可以是 FIRST_BUTTON 或 NONE_BUTTON。
Since:
5
本文題目:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSStylusEvent
文章路徑:http://fisionsoft.com.cn/article/dphcpdh.html


咨詢
建站咨詢
