Class ISN_UIDevice
A representation of the current device.
Inheritance
Inherited Members
Namespace: SA.iOS.UIKit
Assembly: cs.temp.dll.dll
Syntax
public class ISN_UIDevice
Properties
CurrentDevice
Returns an object representing the current device. You access the properties of the returned ISN_UIDevice instance to obtain information about the device.
Declaration
public static ISN_UIDevice CurrentDevice { get; }
Property Value
Type | Description |
---|---|
ISN_UIDevice |
IdentifierForVendor
An alphanumeric string that uniquely identifies a device to the app’s vendor.
The value of this property is the same for apps that comes from the same vendor running on the same device. A different value is returned for apps on the same device that come from different vendors, and for apps on different devices regardless of vendor.
Normally, the vendor is determined by data provided by the App Store. If the app was not installed from the app store (such as enterprise apps and apps still in development), then a vendor identifier is calculated based on the app’s bundle ID. The bundle ID is assumed to be in reverse-DNS format.
Declaration
public string IdentifierForVendor { get; }
Property Value
Type | Description |
---|---|
System.String |
LocalizedModel
The model of the device as a localized string. The value of this property is a string that contains a localized version of the string returned from Model.
Declaration
public string LocalizedModel { get; }
Property Value
Type | Description |
---|---|
System.String |
MajorIOSVersion
The current major version number of the operating system. Example: 11
Declaration
public int MajorIOSVersion { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Model
The model of the device. Possible examples of model strings are ”iPhone” and ”iPod touch”.
Declaration
public string Model { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
The name identifying the device. The value of this property is an arbitrary alphanumeric string that is associated with the device as an identifier. For example, you can find the name of an iOS device in the General > About settings.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
SystemName
The name of the operating system running on the device represented by the receiver.
Declaration
public string SystemName { get; }
Property Value
Type | Description |
---|---|
System.String |
SystemVersion
The current version of the operating system.
Declaration
public string SystemVersion { get; }
Property Value
Type | Description |
---|---|
System.String |
UserInterfaceIdiom
The style of interface to use on the current device.
For universal applications, you can use this property to tailor the behavior of your application for a specific type of device. For example, iPhone and iPad devices have different screen sizes, so you might want to create different views and controls based on the type of the current device.
Declaration
public ISN_UIUserInterfaceIdiom UserInterfaceIdiom { get; }
Property Value
Type | Description |
---|---|
ISN_UIUserInterfaceIdiom |