Represents a collection of device-browser combinations that share a manufacturer and screen size.
DeviceBundles are for mobile emulation in page preview only. It has a representative Device
that provides a single user agent string for the emulation. If a page previews correctly with selected bundle, it means the page will display properly on all the devices this bundle includes.
Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
The IDeviceBundle type exposes the following members.
Properties
Name | Description | |
---|---|---|
Created |
Gets the entity's creation date.
(Inherited from IEntity.) | |
CreationUser |
Gets the ID of the User who created this entity.
(Inherited from IEntity.) | |
LastModified |
Gets the date when the entity was most recently modified.
(Inherited from IEntity.) | |
LastModifiedUser |
Gets the ID of the User who lasted edited the entity.
(Inherited from IEntity.) | |
Name |
Gets and sets the entity's name.
(Inherited from IEntity.) | |
RepresentativeDevice |
Gets the device that represents this bundle. This device's user agent is used for mobile preview emulation.
| |
ScreenHeight |
Gets the simulated screen height for browser. All devices in this bundle will have the same height.
| |
ScreenWidth |
Gets the simulated screen width for browser. All devices in this bundle have the same width.
| |
Session |
Gets the session that retrieved this entity. An entity is always session-specific.
(Inherited from IEntity.) | |
SessionId |
Gets the unique ID of the session that retrieved this entity.
(Inherited from IEntity.) | |
UserAgent |
Gets the User Agent string in this device/browser combination
(Inherited from IDevice.) |
Methods
Name | Description | |
---|---|---|
AddDevice |
Adds a new device to this bundle.
| |
Clear |
Clears all devices from this bundle.
| |
Devices |
Retrieves the collection of devices included in this bundle, in a paginated format.
| |
DevicesCount |
Gets count of all devices in this bundle.
| |
RemoveDevice |
Removes a device from bundle.
| |
SetRepresentativeDevice |
Sets representative device of the bundle.
| |
ValidateData |
Validates this entity's data. Implemented by concrete inheriting types.
(Inherited from IEntity.) | |
ValidateUserPermission |
Validates the user permission on the current entity. Implemented by concrete inheriting types.
It is called automatically upon saving an entity.
(Inherited from IEntity.) |
Events
Name | Description | |
---|---|---|
AfterEntitySave |
This event is fired after a Entity object is saved.
(Inherited from IEntityEvents.) | |
BeforeEntitySave |
This event is fired before any Entity object is about to be saved.
(Inherited from IEntityEvents.) |
Examples
<DeviceBundle N="iPhone" W="320" H="480" UA="Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B125 Safari/7534.48.3" RDID="12280-18117-17776-18092"> <D>Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.85 (KHTML, like Gecko) Version/5.1 Mobile/9B125 Safari/7534.48.3</D> </DeviceBundle>
See Also