This object provides a way to vibrate the device.
Description
Connects with the Cordova vibration plugin, detects if the plugin is available to call, and binds the current PowerBuilder object with the JavaScript object defined by the plugin. After that, the PowerBuilder object has all of the methods and properties that the JavaScript object has.
Syntax
of_init
( )
Return value
Integer.
1 - Success.
-1 - It is called in PowerBuilder or Appeon Web, or there is an error.
Description
Vibrates the device for a given amount of time.
Syntax
of_vibrate
( long
al_time
)
of_vibrate
( long
al_time[]
) (Supported on Android
only)
Parameter
al_time
- Milliseconds to vibrate the
device.
al_time[]
- Sequence of durations (in
milliseconds) for which to turn on or off the vibrator.
Return value
None
oleobject ieon_ole
PowerBuilder OLEObject object to be connected with the Cordova plugin.
powerobject ipo_bindevent
PowerBuilder object to be bound with the JavaScript object.
string is_errorevent
Stores the error event name of the PowerBuilder object.
string is_errorText
Stores the error information returned by the JavaScript function when execution failed.
string is_jserrorText
Stores the JavaScript error information when JavaScript call fails.
string is_successevent
Stores the success event name of the PowerBuilder object.
string is_successText
Stores the value returned by the JavaScript function when execution is successful.