public static void Vibrate(VibrationEffect vibe, AudioAttributes attributes) { if (AGUtils.IsNotAndroid()) { return; } if (!AreVibrationEffectsSupported) { return; } AGSystemService.VibratorService.Call("vibrate", vibe.AJO, attributes.AJO); }
public void SetSound([NotNull] string soundFilePath, AudioAttributes audioAttributes) { if (soundFilePath == null) { throw new ArgumentNullException("soundFilePath"); } if (ApiCheck) { return; } AJO.Call("setSound", AndroidUri.FromFile(soundFilePath), audioAttributes == null ? null : audioAttributes.AJO); }