日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產(chǎn)品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSStylusEvent

StylusEvent

站在用戶的角度思考問題,與客戶深入溝通,找到三沙網(wǎng)站設計與三沙網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗,讓設計與互聯(lián)網(wǎng)技術結合,創(chuàng)造個性化、用戶體驗好的作品,建站類型包括:網(wǎng)站建設、做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機端網(wǎng)站、網(wǎng)站推廣、域名注冊、雅安服務器托管、企業(yè)郵箱。業(yè)務覆蓋三沙地區(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

構造函數(shù)摘要

構造函數(shù) 描述
StylusEvent()

方法總結

修飾符和類型 方法 描述
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

構造函數(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


網(wǎng)站標題:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSStylusEvent
網(wǎng)頁網(wǎng)址:http://www.dlmjj.cn/article/dphcpdh.html