Class DeviceExt
This class is used to set the platform specific values using single method.
Inheritance
System.Object
DeviceExt
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public static class DeviceExt : Object
Methods
OnPlatform<T>(T, T, T)
Method used to check target platform of application.
Declaration
public static T OnPlatform<T>(T iOS, T android, T winPhone)
Parameters
Type | Name | Description |
---|---|---|
T | iOS | iOS platform. |
T | android | Android platform. |
T | winPhone | WinPhone platform. |
Returns
Type | Description |
---|---|
T | Specified platform. |
Type Parameters
Name | Description |
---|---|
T | Type of paramater. |
OnPlatform<T>(T, T, T, T, T)
Method used to check target platform of application.
Declaration
public static T OnPlatform<T>(T iOS, T android, T winPhone8, T winPhone81, T winRT)
Parameters
Type | Name | Description |
---|---|---|
T | iOS | iOS platform. |
T | android | Android platform. |
T | winPhone8 | WinPhone 8 OS. |
T | winPhone81 | WinPhone 8.1 OS. |
T | winRT | WinRT platform. |
Returns
Type | Description |
---|---|
T | specified platform. |
Type Parameters
Name | Description |
---|---|
T | Type of parameter. |