Android Vibrator API
Signal Garden Inc.
$5.00
Date |
Price |
---|---|
日期和时间 |
价钱($) |
05/10(2018) |
5.0 |
11/18(2024) |
5.0 |
Jump AssetStore
The complete Vibrator API from Android, exposed in Unity.
A robust, lightweight interface for controlling vibrations on Android from inside Unity.
Works seamlessly for every Android device and all API levels (from 1 to 27).
Includes amplitude control, introduced in Android Oreo (API level 26)!
Every function in the native interface is implemented, including:
• void cancel ()
• bool hasAmplitudeControl ()
• bool hasVibrator ()
• void vibrate (long milliseconds)
• void vibrate (VibrationEffect vibe)
• void vibrate (long[] pattern, int repeat)
• void vibrate (long[] pattern, int repeat, AudioAttributes attributes)
• void vibrate (VibrationEffect vibe, AudioAttributes attributes)
• void vibrate (long milliseconds, AudioAttributes attributes)
Use the features you need without worrying if the device supports them.
Feature support, which is based on device API level, is determined and handled automatically. The device API level is also exposed in case you need manual control.
Full source code available upon request. Just send us an email with your invoice number!
Online Documentation
Follow us for updates and news:
LinkedIn
| Google+
| Facebook
|
Instagram
| Twitter
Check out our other assets:
Android - Multi-Push