HomeDocs
Skip to main content

offWifiConnected

Introduction

Cancels listening for Wi-Fi events.

Parameters

None

Sample Code

Page({
data: {
offWifiConnected: '',
},
onReady() {
this.offWifiConnected();
},
offWifiConnected() {
const _that = this;
dlt.offWifiConnected({
success: function (res) {
console.log('offWifiConnected success', res);
_that.setData({
offWifiConnected: res,
});
},
complete: function (res) {
console.log('offWifiConnected complete', res);
},
fail: function (res) {
console.log('offWifiConnected fail', res);
_that.setData({
offWifiConnected: res,
});
},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.