Logo Logo en
  • iRidi Pro
    Основные компоненты
    • Приложение i3 Pro
    • iRidi Pro Server
    • iRidi Studio
    • iRidium studio v. 1.3.8 (устаревшая версия)
    Java Script в iRidi
    • Руководство
    • Справочник
    • Примеры
    • JS драйвера
    другие
    • Личный Кабинет
    • iRidium Cloud
    • iRidium Transfer
    • Push-уведомления
    • Лучшая практика
    Лицензирование
    • Лицензирование и передача проекта
    • Оффлайн-лицензирование
    • Активация iRidi Pro Server
  • Продукты
    i3 lite
    • Приложение i3 lite
    • Регистрация и лицензирование
    • Сервер
    • Модули
    KNX Home Server
    • Приложение i3 KNX
    • KNX Home Server
    BUS77 HOME SERVER
    • Приложения Bus77 Home и Bus77 Lite
    • Bus77 Home Server
    Решения
    • BYOD - решение для гостиниц
    • Портал жителя - решение для МКД
    iRidi SCADA
    • iRidi SCADA
  • Bus77
    НАСТРОЙКА BUS77
    • Основы Bus77
    • Приложения Bus77 Home и Bus77 Lite
    • Работа с драйвером Bus77 в iRidi Studio
    • Настройка шины Bus77 в iRidi Studio
    ПРОТОКОЛ BUS77
    • Характеристики CAN (Bus77)
    • Описание протокола
    • Исходники на GitHub
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
  • Поддерживаемое оборудование
    Драйверы
    • Список драйверов
    • ProAV драйвера
    • AV & Custom Systems
    • JS драйвера
    • Сторонние драйвера и фриланс
    Протоколы и интерфейсы
    • Голосовое управление
    • 1-Wire
    • BACnet IP
    • Bus77
    • KNX
    • KNX IP BAOS
    • Weinzierl kBerry
    • Microsoft Exchange
    • Modbus
    • MQTT
    • NFC
    • ODBC
    • Onvif
    • SIP
    • SNMP
    • Wake On Lan
    • Z-Wave
    • ZigBee
    Производители
    • AMX
    • AVCiT
    • Beckhoff ADS
    • Biamp Tesira
    • Bluesound
    • Casambi
    • BSS Harman
    • Clipsal
    • ControlArt 7Port
    • Crestron
    • DigiBird
    • Domintell
    • Duotecno
    • EIDE
    • EPSNET
    • Global Cache
    • HDL Buspro
    • Helvar
    • IEAST
    • INELS BUS
    • INELS Wireless
    • Intesis
    • Kleger
    • Kramer VIA
    • Kramer 3000
    • Larnitech
    • Legrand Netatmo
    • LG TV
    • Lutron
    • Lutron Homeworks QS
    • MyHome
    • Nest
    • Novastar
    • Panasоnic PTZ
    • Philips Dynalite
    • PJLink
    • Satel
    • SamsungTV
    • Sonos
    • Somfy
    • SpinetiX
    • Televic Conference
    • TIS
    • Tion
    • URRI
    • Velbus
    • Velocio
    • Vinteo
    • WyreStorm
    • WiiM
    • Xicato
    • Yamaha
    • ZONT
    • Z-Wave.me
    Протестированное оборудование
    • Панель HDL S57
    • Панель HDL S10
    • SIP-домофон
    • Akuvox
    • Arlight
    • Divus
    • QBic TD-1050 PRO
    • QBic TD-1060 Slim
    • QBic TD-1070
    • Sigur
    • Uni-Ubi
    • Velocio
  • Оборудование iRidi

    Серверы
    • HS Сервер
    • ProAV Control Processor Basic
    • ProAV Control Processor Advanced
    • Спецификация контроллеров UMC
    • Настройка контроллера UMC C2
    • Настройка контроллера UMC C3
    • Настройка контроллера HDL IntelliCenter 2 (UMC C4)
    Модули расширения
    • I-PX-RS1
    • I-PX-RS4
    • I-PX-IR3
    KNX
    • KNX Home Server
    • KNX IP Interface
    Панели управления
    • iRidium Panel 7
    • Touch Panel P3
    • Touch Panel P6
    • Touch Panel P8
    • Touch Panel P10
    • Tabletop Touch Panel 10
    • AV Remote Control
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
    • Differences
iRidium mobile web-site
Содержание
    Инструменты‌
    • Сведения о странице
    • Постоянная ссылка
    • Версия для печати
    • Спецстраницы
    • Связанные правки
    • Ссылки сюда
    Login / Create Account
    Материал из for iRidium developers
    Перейти к: навигация, поиск
    Эта страница является переводом страницы Browser API. Перевод выполнен на 100%.

    Other languages:
    English • ‎русский
  • Handbook
  • Browser
  • Содержание

    • 1 API iRidium.Browser
    • 2 Methods
      • 2.1 IR.OpenBrowser
      • 2.2 IR.CloseBrowser
    • 3 Events
      • 3.1 IR.EVENT_BROWSER_PAGE_STARTED
      • 3.2 IR.EVENT_BROWSER_PAGE_FINISHED
      • 3.3 IR.EVENT_BROWSER_PAGE_ERROR
      • 3.4 IR.EVENT_BROWSER_CLOSED

    API iRidium.Browser

    methods and listeners to work with browser

    Methods

    IR.OpenBrowser

    Open the link on a browser page, without leaving i3 pro.

    Syntax

    IR.OpenBrowser(link);

    input value description
    link "https://google.com" type: string
    HTTP(s) link
    output

    -


    Sample

    function OpenBrowser () 
    {
        IR.OpenBrowser("https://google.com");
    }

    During work with a browser apps on iOS "freeze".
    Correct work with a built-in browser is supported only on iOS and Android.


    IR.CloseBrowser

    Close the browser opened in the i3 pro app

    Syntax

    IR.CloseBrowser();

    input value description

    -

    output
    result true type: boolean
    Closing browser window


    Sample

    function OpenBrowser ()
    {
        IR.OpenBrowser("http://google.com");      // opening browser 
        IR.SetTimeout(9000, function()
        {
            IR.CloseBrowser();          //closing browser 
        })
    }

    Correct work with a built-in browser is supported only on iOS and Android.


    Events

    IR.EVENT_BROWSER_PAGE_STARTED

    ID of the event that is activated when a browser page starts loading in the i3 pro app.

    Syntax

    IR.AddListener(IR.EVENT_BROWSER_PAGE_STARTED, 0, function(url), [pointer]);

    input value description
    function function() {} type: function
    an unnamed function or a function call
    pointer - type: object
    a pointer to an object that services a function (optional)
    output
    url https://www.google.com/?gws_rd=ssl type: string
    url address of the page.


    Sample

    IR.AddListener(IR.EVENT_BROWSER_PAGE_STARTED,0,function(url)
    {
        IR.Log("STARTED" + url);
    })

    Correct work with a built-in browser is supported only on iOS and Android.


    IR.EVENT_BROWSER_PAGE_FINISHED

    ID of the event that is activated when a browser page end loading in the i3 pro app.

    Syntax

    IR.AddListener(IR.EVENT_BROWSER_PAGE_FINISHED, 0, function(url), [pointer]);

    input value description
    function function() {} type: function
    an unnamed function or a function call
    pointer - type: object
    a pointer to an object that services a function (optional)
    output
    url https://www.google.com/?gws_rd=ssl type: string
    url address of the page.


    Sample

    IR.AddListener(IR.EVENT_BROWSER_PAGE_FINISHED,0,function(url)
    {
        IR.Log("FINISHED" + url);
    })

    Correct work with a built-in browser is supported only on iOS and Android.


    IR.EVENT_BROWSER_PAGE_ERROR

    ID of the event that is activated when there is an error in loading a browser page in the i3 pro app.

    Syntax

    IR.AddListener(IR.EVENT_BROWSER_PAGE_ERROR, 0, function(url, errorCode, errorDescription), [pointer]);

    input value description
    function function() {} type: function
    an unnamed function or a function call
    pointer - type: object
    a pointer to an object that services a function (optional)
    output
    errorCode 404 type: number
    the error code
    errorDescription Not Found type: string
    details of the error


    Sample

    IR.AddListener(IR.EVENT_BROWSER_PAGE_ERROR,0,function(url, errorCode, errorDescription)
    {
        IR.Log("ERROR" + errorCode + errorDescription);
    })

    Correct work with a built-in browser is supported only on iOS and Android.


    IR.EVENT_BROWSER_CLOSED

    ID of the event that is activated when a browser is closed in the i3 pro app.

    Syntax

    IR.AddListener(IR.EVENT_BROWSER_CLOSED, 0, function, [pointer]);

    input value description
    function function() {} type: function
    an unnamed function or a function call
    pointer - type: object
    a pointer to an object that services a function (optional)
    output

    -


    Sample

    IR.AddListener(IR.EVENT_BROWSER_CLOSED,0,function()
    {
        IR.Log("CLOSED");
    })

    Correct work with a built-in browser is supported only on iOS and Android.

    Источник — «https://dev.iridi.com/index.php?title=Browser_API/en&oldid=101324»
    About us
    Company
    Team
    History
    Philosophy
    Rewards
    Partnership
    Our partner
    Partnership Programs
    Apply for partnership
    products
    iRidium pro
    iRidium lite
    iRidium gate
    iRidium server
    Loads
    iRidium pro
    iRidium lite
    Other version
    Marketing materials
    Support
    On-line courses/Video
    Recommended equipment
    Other version
    iRidium pro
    Documentation
    FAQ
    Forum
    iRidium lite
    Documentation
    Forum
    Projects
    Standart projects
    Smart buildings
    Smart house
    Special solution
    Find a dealer
    News
    Youtube
    Twitter
    VK
    Logo
    contact@iridi.com
    +7 (499) 322-73-29

    Privacy policy