• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 23 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0034 秒)

1. laya.device.geolocation.Geolocation [ 100%]

...ation  clearWatch(id:int):void[static] 移除watchPosition安装的指定理器。 Geolocation  getCurrentPosition(onSuccess:Handler, onError:Handler = null):void[static] 获取设备当前位置。 Geolocation  watchPosition(onSuccess:Handler, onError:Handler):int[static] 监视设备当...

来源: Laya2.0_api 发布时间: 20190513

2. laya.utils.Handler [ 98%]

...a.utilsClasspublic class HandlerInheritanceHandler Object Handler 是事件理器类。 推荐使用 Handler.create() 方法从对象池创建,减少对象创建消耗。创建的 Handler 对象不再使用后,可以使用 Handler.recover() 将其回收到对象池,回收后不要再使用...

来源: Laya2.0_api 发布时间: 20190513

3. laya.ui.ISelect [ 97%]

...接口,实现对象的 selected 属性和 clickHandler 选择回调函数理器。 Public Properties PropertyDefined By  clickHandler : Handler 对象的点击事件回掉函数理器。 ISelect  selected : Boolean 一个布尔值,表示是否被选择。 ISelectProperty DetailclickHa...

来源: Laya2.0_api 发布时间: 20190513

4. laya.device.motion.Gyroscope [ 94%]

...取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标...

来源: Laya2.0_api 发布时间: 20190513

5. laya.device.media.Media [ 92%]

...eb/API/MediaDevices/getUserMedia。  onSuccess:Handler — 获取成功的理器,唯一参数返回媒体的Blob地址,可以将其传给Video。  onError:Handler — 获取失败的理器,唯一参数是Error。 supported()method  public static function supported():Boolean 检查浏...

来源: Laya2.0_api 发布时间: 20190513

6. laya.device.motion.Accelerator [ 88%]

...唯一的Accelerator引用,请勿调用构造函数。 listen()的回调理器接受四个参数: acceleration: 表示用户给予设备的加速度。 accelerationIncludingGravity: 设备受到的总加速度(包含重力)。 rotationRate: 设备的自转速率。 interval: 加速度获...

来源: Laya2.0_api 发布时间: 20190513

7. laya.media.SoundChannel [ 88%]

...ic Properties PropertyDefined By  completeHandler : Handler 播放完成理器。 SoundChannel  duration : Number[read-only] 获取总时间,单位是秒。 SoundChannel  isStopped : Boolean = false 表示声音是否已暂停。 SoundChannel  loops : int 循环次数。 SoundChannel ...

来源: Laya2.0_api 发布时间: 20190513

8. laya.ui.List [ 77%]

...则不会更改)。 Sprite  mouseHandler : Handler单元格鼠标事件理器(默认返回参数e:Event,index:int)。List mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件的捕获阶段,此阶段引擎会从stage开...

来源: Laya2.0_api 发布时间: 20190513

9. laya.ui.Tree [ 73%]

...不会更改)。 Sprite  mouseHandler : Handler 单元格鼠标事件理器。 默认返回参数(e:Event,index:int)。 Tree mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件的捕获阶段,此阶段引擎会从sta...

来源: Laya2.0_api 发布时间: 20190513

10. laya.ui.ViewStack [ 64%]

...选择的项对象。 ViewStack  setIndexHandler : Handler 索引设置理器。 默认回调参数:index:int ViewStack skewX : Number水平倾斜角度,默认值为0。以角度为单位。Sprite skewY : Number垂直倾斜角度,默认值为0。以角度为单位。Sprite stage : Stag...

来源: Laya2.0_api 发布时间: 20190513