晴川云鸿蒙OS教程:鸿蒙OS SlideDrawer.SlideDisable

SlideDrawer.SlideDisable

public static interface SlideDrawer.SlideDisable

允许实时禁用幻灯片。

方法总结

修饰符和类型 方法 描述
boolean shouldDisableSlide(SlideDrawer layout, SlideDrawer.SlideDirection direction, DragInfo info) 调用以确定是否应禁用 SlideDrawer 上的当前幻灯片事件。

方法详情

shouldDisableSlide

boolean shouldDisableSlide(SlideDrawer layout, SlideDrawer.SlideDirection direction, DragInfo info)

调用以确定是否应禁用 SlideDrawer 上的当前幻灯片事件。

参数:

参数名称 参数描述
info 表示当前幻灯片事件的 DragInfo 信息。
layout 指示发生滑动事件的 SlideDrawer。
direction 指示滑动事件的方向。

返回:

如果应该拒绝幻灯片事件,则返回 true; 否则返回 false。

原创文章,作者:晴川运维,如若转载,请注明出处:https://baike.qcidc.com/3076.html

(0)
晴川运维晴川运维
上一篇 2025年6月1日
下一篇 2025年6月1日

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注