Hierarchy

  • DeviceInfo

Properties

_browser: Browser = GlobalEnum.Browser.unknown

****************** PRIVATE CACHE VARIABLES *******************

_iphoneDetails: iphoneDetails = undefined
_isAndroid: boolean = undefined
_isIos: boolean = undefined
_isIphoneWithNotch: boolean = undefined
_isNativeApp: boolean = undefined
_isPwa: boolean = undefined
_isTouch: boolean = undefined
_operatingSystem: MobileOS = GlobalEnum.MobileOS.Unknown

Methods

  • Private

    Checks if it's running inside IE browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Gets in which browser the framework is running, based in the UserAgent information.

    Static

    Returns

    {GlobalEnum.Browser}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • Optional userAgent: string = ''

      Optional parameter. If none is passed, the framework will get it.

    Returns Browser

  • Gets the device in which the framework is running, based on the class added by the OutSystems platform in the body.

    Static

    Returns

    {GlobalEnum.DeviceType} Detected device type.

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns DeviceType

  • Obtains the Operating system in which the framework is running

    Static

    Returns

    {GlobalEnum.MobileOS} Detected operating system.

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • Optional userAgent: string = ''

      Optional parameter. If none, the framework will obtain the UserAgent, calculate it once, and use the cache value afterwards.

    Returns MobileOS

Accessors

  • get HasAccessibilityEnabled(): boolean
  • Getter that returns if the application is running in a device with accessibility enabled.

    Static

    Memberof

    DeviceInfo

    Returns boolean

  • get IsDesktop(): boolean
  • Getter that returns if the application is running in a desktop device.

    Static

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns boolean

  • get IsPhone(): boolean
  • Getter that returns if the application is running in a phone device.

    Static

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns boolean

  • get IsIphoneWithNotch(): boolean
  • Getter that retuns if the application is running in a iPhone with a notch (iphoneX/iphone12/iphone13).

    Static

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns boolean

  • get IsTablet(): boolean
  • Getter that returns if the application is running in a tablet device.

    Static

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns boolean

  • get IsPwa(): boolean
  • Getter that returns if the application is running as a PWA.

    Static

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns boolean

  • get IsNative(): boolean
  • Getter that returns if the application is running inside a native shell.

    Static

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns boolean

  • get IsAndroid(): boolean
  • Getter that returns if the application is running inside a native shell and the device is Android.

    Static

    Memberof

    DeviceInfo

    Returns boolean

  • get IsIos(): boolean
  • Getter that returns if the application is running inside a native shell and the device is iOS.

    Static

    Memberof

    DeviceInfo

    Returns boolean

  • get IsTouch(): boolean
  • Getter that returns if the device is touched enabled or not.

    Static

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns boolean

Constructors