Jump to content

Component: Vibrate ( Data): Difference between revisions

From Flowcode Help
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | MatrixTSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray;..."
 
No edit summary
Line 13: Line 13:


==Vibrate component==
==Vibrate component==
Component that causes the mobile device to vibrate
Component that causes the mobile device to vibrate.
 


==Version information==
==Version information==
Line 21: Line 22:
   
   


==Detailed description==
Many mobile devices such as mobile phones have internal hardware which can cause the device to vibrate.


==Detailed description==
This component provides access to this and allows the device to be vibrated using a pattern of vibrations and pauses.


''No detailed description exists yet for this component''


==Examples==
==Examples==


''<span style="color:red;">No additional examples</span>''
===Vibration example===
This simple example shows how to vibrate a mobile device using a set of buttons.
 
{{Fcfile|VibrationTest.fcweb|VibrationTest.fcweb}}
 
The web app created by this example can be viewed here: [https://www.flowcode.co.uk/example/WebComps/VibrationTest.html VibrationTest Example]
 


==Macro reference==
==Macro reference==

Revision as of 15:46, 27 April 2026

Author MatrixTSL
Version 1.0
Category Data


Vibrate component

Component that causes the mobile device to vibrate.


Version information

Library Version, Component Version, Date, Author, Info
1, 1.0, 21-04-26, ST, Created

Detailed description

Many mobile devices such as mobile phones have internal hardware which can cause the device to vibrate.

This component provides access to this and allows the device to be vibrated using a pattern of vibrations and pauses.


Examples

Vibration example

This simple example shows how to vibrate a mobile device using a set of buttons.

VibrationTest.fcweb

The web app created by this example can be viewed here: VibrationTest Example


Macro reference

Cancel

Cancel
Cancels any ongoing vibration 
- VOID Return


Vibrate

Vibrate
Send the preset vibration pattern to the mobile device 
- VOID Return


VibrateCustom

VibrateCustom
Send a custom vibration pattern to the mobile device 
- LONG Pattern
An array of values describing the vibration pattern period 
- VOID Return


Property reference

Properties
Count
The number of vibrations in the sequence 
Length 1
The length of the 1st vibration (in ms) 
Pause 1
The length of the pause between the 1st and 2nd vibrations (in ms) 
Length 2
The length of the 2nd vibration (in ms) 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_WEBEXP_Vibrate.fcsx

Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Vibrate.fcsx