codecamp

鸿蒙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。

鸿蒙OS SearchBar.QueryListener
鸿蒙OS SlideDrawer.SlideListener
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

鸿蒙OS 开发

鸿蒙OS 术语

鸿蒙OS Java API参考

鸿蒙OS ohos.aafwk.ability

鸿蒙OS ohos.aafwk.abilityjet.activedata

鸿蒙OS ohos.aafwk.content

鸿蒙OS java.lang

鸿蒙OS java.Util

鸿蒙OS java.Util class

鸿蒙OS ohos.data.dataability

鸿蒙OS ohos.data.dataability class

鸿蒙OS ohos.agp.components

鸿蒙OS ohos.agp.components interface

鸿蒙OS ohos.agp.components class

鸿蒙OS ohos.global.configuration

鸿蒙OS java.io

鸿蒙OS ohos.data.resultset

鸿蒙OS ohos.data.resultset interface

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }