Table of Contents

Interface IDeviceInfo

Namespace
Xui.Core.DI
Assembly
Xui.Core.dll

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

DeviceFormFactor

Platform

Gets the operating system the app is running on.

DevicePlatform Platform { get; }

Property Value

DevicePlatform