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

    Gets the operating system based on the user agent.

    Static

    Returns

    {GlobalEnum.MobileOS}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • Optional userAgent: string = ''

    Returns MobileOS

  • Private

    Cleans the userAgent passed by the developer, or returns the one from the window.

    Static

    Returns

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • Optional userAgent: string = ''

    Returns string

  • Private

    Checks if it's running inside chrome browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside Edge browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside Firefox browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside IE browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside Kindle browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside MIUI browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside Opera browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside Safari browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside Samsung browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside UC browser.

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.DeviceInfo

    Parameters

    • ua: string

    Returns boolean

  • Private

    Checks if it's running inside Yandex 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 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 IsTouch(): boolean
  • Getter that returns if the device is touched enabled or not.

    Static

    Memberof

    OSFramework.Helper.DeviceInfo

    Returns boolean

Constructors