IMobileDeviceManager Interface |
Namespace: Ingeniux.CMS
The IMobileDeviceManager type exposes the following members.
Name | Description | |
---|---|---|
ContentStore |
Gets the Content Store.
(Inherited from ITransactionalEntity.) | |
CurrentUser |
Gets the Operating User for the Session .
(Inherited from ITransactionalEntity.) | |
Enabled |
Gets and sets whether mobile emulation is enabled. When not enabled, device bundles cannot be selected to emulate mobile preview, and the CMS
user interface does not allow management of device bundles.
| |
GenericDevice |
Gets the generic device information.
| |
Item |
Gets an device bundle by its name.
| |
Session |
Gets the User Session that this manager instance was initiated from.
(Inherited from ITransactionalEntity.) |
Name | Description | |
---|---|---|
AddDeviceBundle |
Adds a new device bundle to the collection.
| |
DeepCloneT, TManager |
Duplicates an object instance, not including its unique ID.
(Inherited from ITransactionalEntity.) | |
DeviceBundle |
Gets a device bundle by its name.
| |
DeviceBundles |
Retrieves the collection of all device bundles in a paginated format.
| |
QuickWrite |
Creates a temporary Write Session to quickly write something outside the current Session and transaction.
This is a way to bypass the transaction and quickly put something into the content store.
(Inherited from ITransactionalEntity.) | |
RemoveDeviceBundle |
Removes a device bundle from the collection.
|
Like all manager objects, instances of this manager are retrieved from a IUserSession object. It only works within that session object.
using (IUserSession session = store.OpenReadSession(currentUser))
{
IMobileDeviceManager mobileDeviceManager = session.MobileDeviceManager;
...
}
<?xml version="1.0" encoding="utf-8"?> <MobileDevices Enabled="false"> <GenericDevice W="240" H="320" /> <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> <DeviceBundle N="iPad" W="768" H="1024" UA="Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8J2 Safari/6531.22.7" RDID="15767-17090-4201-18092"> </DeviceBundle> </MobileDevices>