pulsar-haptics-android

Create and manage custom haptic patterns for Android using the Kotlin SDK.

422|13|Updated Oct 3, 2025
One-click install
npx skills add https://github.com/software-mansion/pulsar --skill pulsar-haptics-android
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pulsar-haptics-android
Source: https://github.com/software-mansion/pulsar/tree/main/skills/references/android
Command: npx skills add https://github.com/software-mansion/pulsar --skill pulsar-haptics-android

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pulsar, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides Kotlin SDK-based haptic feedback for Android apps, addressing the need for engaging and intuitive touch interactions, particularly in scenarios where touch sensations can enhance the user experience.

Core Features & Use Cases

  • Custom Haptic Patterns: Compose and play custom haptic patterns with precise control over amplitude and frequency.
  • System Presets: Access pre-defined system haptic effects like impacts, notifications, and selections for quick integration.
  • Gesture-Based Haptics: Implement gesture-driven feedback for more responsive interactions.
  • Cross-Platform Consistency: Ensures the same haptic API behavior across iOS and Android platforms.
  • Use Case: Integrate into games or interactive applications where specific haptic effects enhance user feedback on touch or gestures.

Quick Start

Create a Pulsar instance and get the presets from it to play predefined effects:

val presets = pulsar.getPresets()
presets.systemImpactLight()

Frequently Asked Questions about pulsar-haptics-android

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add custom haptic feedback to an Android Kotlin app?

Implement gesture-based haptics by using the Kotlin SDK to trigger responsive feedback during user interactions. This approach ties custom haptic patterns directly to touch inputs, enhancing engagement in games or interactive applications.

Can I ensure consistent haptic feedback APIs across iOS and Android platforms?

Yes, you can ensure consistent haptic feedback APIs across iOS and Android platforms. This SDK provides cross-platform API consistency, allowing the same haptic API behavior and touch sensations to be maintained between both platforms.

How do I play predefined system haptic effects on Android?

To play predefined system haptic effects on Android, initialize a Pulsar instance and retrieve the presets. You can then quickly call system haptic effects like impacts, notifications, and selections, such as using presets.systemImpactLight().

Do I need a specific dependency to manage custom haptic patterns in Kotlin?

Yes, you need the pulsar dependency to manage custom haptic patterns in Kotlin. It provides the necessary Kotlin SDK foundation to compose and play tailored haptic feedback with precise control over amplitude and frequency.

What is the best way to implement gesture-driven touch sensations for interactive Android apps?

The best way to implement gesture-driven touch sensations for interactive Android apps is using a Kotlin SDK that supports gesture-based haptics. This enables precise, responsive feedback tied directly to user touch interactions during gameplay or other interactive scenarios.