HomeDocs
Skip to main content

dlt.vibrateLong

Introduction

Triggers a longer vibration on the phone (400 ms).

Usage Limitations

Supported by basic library version 4.0.0 or higher.

Parameters

Object object

AttributeTypeDefault ValueRequiredDescription
successfunctionNoCallback function for a successful API call
failfunctionNoCallback function for a failed API call
completefunctionNoCallback function for the end of an API call (executed for both successful and failed calls)

Sample Code

// pages/index/index.js
Page({
vibrateLong() {
dlt.vibrateLong({
success: function (res) {},
fail: function (res) {},
complete: function (res) {},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.