Mobile Vibration Utility For Unity
npm install com.isdororok.vibrationformobile-unity
public abstract void Vibrate(VibrationType vibrationType);
`
###### Details
Vibrates using pre-defined types.
See Vibrationtype
#### VibrationType
`
enum VibrationType
`
###### Details
Default = 1352,
Peek = 1519,
Pop = 1520,
Nope = 1521,
Heavy,
Medium,
Light,
Rigid,
Soft,
Error,
Success,
Warning
#### AmplitudeType
`
public class AmplitudeType {}
`
###### Details
Vibration Amplitude Types
These values are adjusted by trial and error on Samsung Galaxy.
#### LengthType
`
public class LengthType {}
`
(Customized) Vibration length (duration) types
These values are adjusted by trial and error on Samsung Galaxy.
$3
`
public class VibrationAndroid : VibrationInstance { }
`
###### Details
Implements vibration method for AOS
#### IsVibrationAvailable
`
protected override bool IsVibrationAvailable();
`
###### Details
Checks if the Android device supports the vibration API
###### Returns
- True : Available
- False : Not Available
$3
`
public class VibrationIOS : VibrationInstance { }
``