Hosanna UI API v1.30.2-next
    Preparing search index...

    Interface IHosannaDevice

    Interface representing a device in the Hosanna ecosystem.

    interface IHosannaDevice {
        appInfo: ISGROAppInfo;
        deviceDpi: number;
        deviceInfo: ISGRODeviceInfo;
        deviceLayoutOrientation: DeviceLayoutOrientation;
        devicePreset?: string;
        deviceQuality: DeviceQuality;
        deviceRegistry: IDeviceRegistry;
        expression: Expression;
        layoutInfo: IHosannaDeviceLayoutInfo;
        resolutionInfo: IResolutionInfo;
        screenInfo: IHosannaScreenInfo;
        configure(): unknown;
        getScreenInfo(): IHosannaScreenInfo;
        onSystemDeviceInfoEvent(event: api.ISystemEvent<JsonData>): unknown;
    }
    Index

    Properties

    appInfo: ISGROAppInfo

    Information about the application running on the device.

    deviceDpi: number

    Physical pixel width for the active design surface. Platforms populate this from native display metrics or web preset/bootstrap data.

    deviceInfo: ISGRODeviceInfo

    Information about the device.

    deviceLayoutOrientation: DeviceLayoutOrientation

    Design surface layout (portrait vs landscape). Web may set via ?orientation=; defaults to landscape.

    devicePreset?: string

    Optional platform preset identifier that produced the active device metrics.

    deviceQuality: DeviceQuality

    The quality level of the device.

    deviceRegistry: IDeviceRegistry

    The device registry for storing key-value pairs.

    expression: Expression

    UI form factor (TV vs embedded web vs phone vs tablet). Web uses URL ?expression=.

    Fast view-facing layout metrics and derived helpers. Identity is stable; fields mutate in place.

    resolutionInfo: IResolutionInfo

    Information about the device's resolution.

    screenInfo: IHosannaScreenInfo

    Actual host screen/viewport metrics, distinct from the Hosanna design surface. Web returns browser viewport and screen values; native targets may override with platform metrics.

    Methods

    • Returns unknown