鴻蒙OS Component.RotationEventListener

2022-09-07 10:15 更新

Component.RotationEventListener

public static interface Component.RotationEventListener

提供從組件分派旋轉事件時要調用的回調。

該回調將在組件接收到事件之前被調用。

方法總結

修飾符和類型 方法 描述
boolean onRotationEvent(Component component, RotationEvent event) 旋轉分派給組件的旋鈕事件。

方法詳情

onRotationEvent

boolean onRotationEvent(Component component, RotationEvent event)

旋轉分派給組件的旋鈕事件。

偵聽器在組件接收到事件之前響應旋轉事件。

參數(shù):

參數(shù)名稱 參數(shù)描述
component 指示將旋轉事件分派到的組件。
event 指示有關輪換事件的所有信息。

返回:

如果偵聽器已經(jīng)處理了事件,則返回 true; 否則返回 false。

以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號