// get the current device instance var device = Device.CurrentDevice; // get the name of the device var deviceName = device.Name; // get the model of the device var deviceModel = device.Model; // get the system version of the device var systemVersion = device.SystemVersion; // get the battery level of the device var batteryLevel = device.BatteryLevel;
// get the current device instance var device = Device.CurrentDevice; // vibrate the device for 500ms device.BeginVibrate(TimeSpan.FromMilliseconds(500));The package library for this interface is Xamarin.iOS, which is a part of Xamarin platform that allows you to write iOS, Android, and Windows applications using C#.