public void HapticFeedback(NativeUtils.FeedbackType type) { switch (type) { case NativeUtils.FeedbackType.ImpactLight: hapticFeedbackImpact(1); break; case NativeUtils.FeedbackType.ImpactMedium: hapticFeedbackImpact(5); break; case NativeUtils.FeedbackType.ImpactHeavy: hapticFeedbackImpact(10); break; case NativeUtils.FeedbackType.NotificationSuccess: hapticFeedbackWave(new long[] { 0, 5, 100, 5 }); break; case NativeUtils.FeedbackType.NotificationWarning: hapticFeedbackWave(new long[] { 0, 5, 200, 5 }); break; case NativeUtils.FeedbackType.NotificationError: hapticFeedbackWave(new long[] { 0, 5, 50, 5, 50, 5 }); break; case NativeUtils.FeedbackType.Selection: hapticFeedbackImpact(1); break; } }
private static extern void _NativeUtils_hapticfeedback(NativeUtils.FeedbackType type);
public void HapticFeedback(NativeUtils.FeedbackType type) { _NativeUtils_hapticfeedback(type); }
public void HapticFeedback(NativeUtils.FeedbackType type) { }
public static void HapticFeedback(NativeUtils.FeedbackType type) { plugin.HapticFeedback(type); }