Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70433

Check if device can vibrate

$
0
0

@Spica2 wrote:

I can check if Haptics is available:

import { Capacitor, Plugins } from '@capacitor/core';
const { Haptics } = Plugins;

const HapticsIsAvailable = Capacitor.isPluginAvailable('Haptics');
console.log("HapticsIsAvailable: " + HapticsIsAvailable)

Ho to check, if the device can vibrate?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>