capacitor-community / capacitor-community/volume-buttons

Long press / press and hold function

Open
#7 2 comments 1 reaction 1 assignee Claimed by @ryaa View on GitHub
enhancement
Dominant language
Swift
Stars
16
Forks
5
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
At the moment it is not possible to hold a button. The callback function is called immediately until the release.

**Describe the solution you'd like**
Would it be possible to enable a function to differer between a **one time press** and **a long press / press and hold** and the **release**?

**Additional context**
As an example, I press and hold the volume down button to start some speech recording and when the button is released a speech-to-text function gets startet. A bit like an old school walkie-talkie 😅

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.