DependencyService使ってiOS側に書くしかないです
[assembly: Dependency(typeof(DeviceFunction))]
namespace hoge.iOS
{
public class DeviceFunction : IDeviceFunction
{
private SystemSound _sound = null;
private SystemSound _vibe = null;
public void PlayVibrate()
{
if (_vibe == null)
{
_vibe = new SystemSound(1519);
}
_vibe.PlaySystemSound(); // サウンドと言いつつ振動する
}
public void PlayGoSound()
{
if (_sound == null)
{
_sound = new SystemSound(1104);
}
_sound.PlaySystemSound();
}
}
少し古い記事ですがID番号をまとめてくれてる記事ありました