ON.DeviceType<T>(T, T) Method
Selects the value of a reference type to be applied depending on the device type.
Namespace: DevExpress.Maui.Core
Assembly: DevExpress.Maui.Core.dll
NuGet Package: DevExpress.Maui.Core
Declaration
public static T DeviceType<T>(
T simulator,
T physical
)
Parameters
Name | Type | Description |
---|---|---|
simulator | T | The value to be applied on simulators/emulators. |
physical | T | The value to be applied on phones/tablets. |
Type Parameters
Name | Description |
---|---|
T | The reference type. |
Returns
Type | Description |
---|---|
T | The value selected based on the device screen type class. |
See Also