Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scripting_function


Panel
titleDescription

When called from the Perspective App, will cause the device to vibrate for the specified number of milliseconds.

Note_friendly

iOS vibration duration is fixed. This function will cause an iOS device to vibrate for its default duration, 0.4 seconds (400 milliseconds).

Panel
titleSyntax

system.perspective.vibrateDevice(integer [, sessionId])

  • Parameters

String duration- The duration in milliseconds to vibrate the device.

Note_friendly

iOS vibration duration is fixed. Thus, this parameter will not impact the vibration duration on devices running iOS. 

String sessionId - Identifier of the Session to target. If omitted, the current Session will be used automatically.

  • Returns

Nothing

  • Scope

Gateway, Perspective Session

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet - View
# Vibrates the device for 1/2 second (500 milliseconds).
system.perspective.VibrateDevice(500)
Panel
titleKeywords

system perspective vibrateDevice, perspective.vibrateDevice