DevicePreviewStateHelperExtensions extension

A set of extension to triggers updates of the state.

on

Properties

data ↔ DevicePreviewData

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Access to the current state's data.
getter/setter pair
deviceInfo → DeviceInfo

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

The currently selected device from the availableDevices.
no setter
devices → List<DeviceInfo>

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Access to all available devices.
no setter
isCustomDevice → bool

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Indicate whether the current device is a custom one.
no setter
locale → Locale

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Get the currently selected locale from state's data.
no setter
locales → List<NamedLocale>

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Access to all available locales.
no setter
settings ↔ DevicePreviewSettingsData

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Access to device preview settings from state's data.
getter/setter pair

Methods

enableCustomDevice() → void

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Activate the custom device mode.
rotate() → void

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Change the simulated device orientation between portrait and landscape.
selectDevice(DeviceIdentifier id) → void

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Select the current device.
toggleDarkMode() → void

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Switch from light to dark mode.
toggleFrame() → void

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Hide or show the current device frame.
toggleVirtualKeyboard() → void

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Hide or show the virtual keyboard.
updateCustomDevice(CustomDeviceInfoData data) → void

Available on DevicePreviewStore, provided by the DevicePreviewStateHelperExtensions extension

Updates the custom device configuration.