wechat/app

app module provides miniprogram app bindings it also includes a few global utility functions details in wechat document

Functions

pub fn clear_interval(id id: Int) -> Nil

global function clearInterval(...)

pub fn clear_timeout(id id: Int) -> Nil

global function clearTimeout(...)

pub fn decode_uri_component(uri: String) -> JsObject

global function decodeURIComponent

pub fn get_app() -> JsObject

global function getApp()

pub fn run_app(o: JsObject) -> Nil

app constructor App({...}) the main entry point for miniprogram

pub fn set_interval(
  callback cb: fn(JsObject) -> Nil,
  delay d: Int,
  with o: JsObject,
) -> Int

global function setInterval(...)

pub fn set_timeout(
  callback cb: fn(JsObject) -> Nil,
  delay d: Int,
  with o: JsObject,
) -> Int

global function setTimeout(...)

Search Document