tencent cloud

All product documents
Tencent Cloud Super App as a Service
Vibration
Last updated: 2025-04-10 18:18:35
Vibration
Last updated: 2025-04-10 18:18:35

vibranteShort

This API is used via wx.vibrateShort(Object object).
Feature Description: Triggers a brief vibration (15 ms) on the mobile device. It is only effective on iPhone 7/7 Plus and newer models, as well as on Android devices.
Parameter and Description: Object.
Attribute
Type
Default value
Required
Description
success
function
-
No
Callback Function of Successful Interface Call
fail
function
-
No
Callback Function of Failing Interface Call
complete
function
-
No
Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations)

vibranteLong

This API is used via wx.vibrateLong(Object object).
Feature Description: Triggers a prolonged vibration on the mobile phone (400 ms).
Parameter and Description: Object.
Attribute
Type
Default value
Required
Description
success
function
-
No
Callback Function of Successful Interface Call
fail
function
-
No
Callback Function of Failing Interface Call
complete
function
-
No
Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations)


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon