haptic:invoke()


Type Function

Return value none

See also vibrator.* Haptic


Overview

Invokes the Taptic Engine.

Syntax

haptic:invoke([notificationType])

notificationType optional

String. Only for the 'notification' haptic type. Vibrates with different patterns based on the notification type, can be 'success' (default), 'warning' or 'error'.