Interface IDeviceInfo
Provides information about the current device and platform.
Resolved via this.GetService<IDeviceInfo>() from any View.
The emulator replaces this with a mock to simulate phone or tablet form factors.
public interface IDeviceInfo
Properties
FormFactor
Gets the form factor of the current device.
DeviceFormFactor FormFactor { get; }
Property Value
Platform
Gets the operating system the app is running on.
DevicePlatform Platform { get; }