Component: Vibrate ( Data)

From Flowcode Help
Jump to navigationJump to search
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.

FC6 Icon.png VibrationTest.fcweb

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


Macro reference

Cancel

Fc9-comp-macro.png Cancel
Cancels any ongoing vibration 
Fc9-void-icon.png - VOID Return


Vibrate

Fc9-comp-macro.png Vibrate
Send the preset vibration pattern to the mobile device 
Fc9-void-icon.png - VOID Return


VibrateCustom

Fc9-comp-macro.png VibrateCustom
Send a custom vibration pattern to the mobile device 
Fc9-s32-icon.png - LONG Pattern
An array of values describing the vibration pattern period 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Count
The number of vibrations in the sequence 
Fc9-type-21-icon.png Length 1
The length of the 1st vibration (in ms) 
Fc9-type-21-icon.png Pause 1
The length of the pause between the 1st and 2nd vibrations (in ms) 
Fc9-type-21-icon.png 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