RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
创新互联鸿蒙OS教程:鸿蒙OSSlideDrawer.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。


新闻标题:创新互联鸿蒙OS教程:鸿蒙OSSlideDrawer.SlideDisable
文章起源:http://www.jxjierui.cn/article/cohodes.html