85 lines
1.4 KiB
C#
85 lines
1.4 KiB
C#
using System;
|
|
using UnityEngine;
|
|
using OHM.UnityToolkit.Vibration;
|
|
|
|
public class AndroidVibrationManager : MonoBehaviour
|
|
{
|
|
public static AndroidJavaClass unityPlayer;
|
|
|
|
public static AndroidJavaObject currentActivity;
|
|
|
|
public static AndroidJavaObject vibrator;
|
|
|
|
public static AndroidJavaClass vibrationEffectClass;
|
|
|
|
private static Nullable<int> _defaultAmplitude;
|
|
|
|
private static Nullable<bool> _hasVibrator;
|
|
|
|
private static Nullable<bool> _hasAmplitudeControl;
|
|
|
|
private static Nullable<int> _sdkInt;
|
|
|
|
private static AndroidJavaClass GetVibrationEffectClass()
|
|
{
|
|
return default(AndroidJavaClass);
|
|
}
|
|
|
|
private static int GetDefaultAmplitude()
|
|
{
|
|
return default(int);
|
|
}
|
|
|
|
public static void CreateOneShot(long milliseconds)
|
|
{
|
|
}
|
|
|
|
public static void CreateOneShot(long milliseconds, int amplitude)
|
|
{
|
|
}
|
|
|
|
public static void CreateWaveform(long[] timings, int repeat)
|
|
{
|
|
}
|
|
|
|
public static void CreateWaveform(long[] timings, int[] amplitudes, int repeat)
|
|
{
|
|
}
|
|
|
|
private static void CreateVibrationEffect(string function, object[] args)
|
|
{
|
|
}
|
|
|
|
private static void OldVibrate(long milliseconds)
|
|
{
|
|
}
|
|
|
|
private static void OldVibrate(long[] pattern, int repeat)
|
|
{
|
|
}
|
|
|
|
public static bool HasVibrator()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
public static bool HasAmplituideControl()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
public static void Cancel()
|
|
{
|
|
}
|
|
|
|
private static int getSDKInt()
|
|
{
|
|
return default(int);
|
|
}
|
|
|
|
public static bool IsSupport()
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|