AppVibrate Method (CLIENT)
PLB Web Only, 9.9
The AppVibrate method provides a way to vibrate the mobile device. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A CLIENT object.
return
Optional. A Numeric Variable that returns the success or failure of the method.
time
Optional. A Numeric Variable or decimal number whose value specifies the amount of time to vibrate the mobile device.
Flags Affected: OVER, ZERO
Note the following:
This method is only used for a Sunbelt PL/B Web Client App using Cordova\PhoneGap operations. See the following link for details on the Cordova plugin used:
The ZERO flag is set when the {return} value is zero.
The OVER flag is set if the value returned is too large to be stored into the {return} variable.
The {time} parameter defines the time to vibrate the mobile device. The {time} value is given in milliseconds. The default time is 3000ms.
Example Code
See Also: CLIENT, Client Methods, Method Syntax
![]() |