SlideShare a Scribd company logo
1 of 37
JavaScript
Enhanced capabilities of control interfaces
Markov Ilya
2016
Webinar
JS
GUI
Tokens
Drivers
Sounds
Interface Listener Actions
IR.AddListener(Event_Type, Reference_to_Item, function(Input_Parameters)
{
Body of Listener
});
Event_Type - the event at which the function is performed
Reference_to_Item - the reference of the item the function is assigned to
Input_Parameters - parameters giving information to the function
Body of Listerner – instructions that are done when a listener is activated
Types of events for system listeners
•IR.EVENT_START – Event is activated at the application launch.
•IR.EVENT_WORK – Event is activated when the application is running.
•IR.EVENT_EXIT – Event is activated when exiting the application.
•IR.EVENT_ORIENTATION – Event is activated when changing the device
orientation.
•IR.EVENT_KEYBOARD_SHOW – Event is activated when opening a keyboard.
IR.AddListener(Event_Type, Reference_to_Item, function(Input_Parameters)
{
Body of Listener
});
Event_Type - the event at which the function is performed
Reference_to_Item - the reference of the item the function is assigned to
Input_Parameters - parameters giving information to the function
Body of Listener – instructions that are done when a listener is activated
IR.AddListener(Event_Type, Reference_to_Item, function (Input_Parameters)
{
Body of Listener
});
Event_Type - the event at which the function is performed
Reference_to_Item - the reference of the item the function is assigned to
Input_Parameters - parameters giving information to the function
Body of Listener – instructions that are done when a listener is activated
Таймеры в iRidumScript.
IR.SetTimeout(time, Name_Function); - This function is used for run a function
when the time delay
time - time delay, ms
Name_Function - name of the function that contains the command
IR.SetInterval(time, Name_Function); - This function is used to cycle with a
given recurrence interval
time - time delay, ms
Name_Function - name of the function that contains the command
Delete timer
IR.ClearInterval(id); - This function is used for stopping and deleting delay the
SetTimeout and SetInterval functions from the random access memory.
id - identifier of the SetTimeout or SetInterval function
IR.RemoveListener(Event_Type, Reference_to_Item, Function_Name)
Event_Type - the event at which the function is performed
Reference_to_Item - the reference of the item the function is assigned to
Function_Name - the name of a function that contains a list of instructions
Function to Write Data in Console
IR.Log('text');
IR.Log(Variable);
text – string
Variable – some variable
IR.Exit(); - This function closes the app
IR.Execute('text'); - This function is used to start other programs
IR.ShowKeyboard(value); - This function is used to show a keyboard.
GUI API
GUI API is a set of functions for working with graphic items in a project.
These functions let you:
Create graphic items
Delete graphic items
Refer to items and change their properties
Create listeners assigned to graphical items
Open and close pages and popups
IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y,
Item_Width, Item_Height);
This function is used to create items
Item_Type- indicate the type of the created item;
Item_Name - give the name to the item;
Coordinate_X, Coordinate_Y - initial position of the item in the working area;
Item_Width, Item_Height - width and height of the created item
The type of items determines what the created item will look like, that is,
defines a set of properties.
Types of items:
•Page - IR.ITEM_PAGE
•Popup - IR.ITEM_POPUP
•Button - IR.ITEM_BUTTON
•Trigger button - IR.ITEM_TRIGGER_BUTTON
•Multistate button - IR.ITEM_MUTI_STATE_BUTTON
•Up/Down button - IR.ITEM_UPDOWN_BUTTON
•Level - IR.ITEM_LEVEL
•Multistate level - IR.ITEM_MUTI_STATE_LEVEL
•EditBox - IR.ITEM_EDIT_BOX
•Virtual Key - IR.ITEM_VIRTUAL_KEY_BUTTON
•Joystick - IR.ITEM_JOYSTICK
IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y,
Item_Width, Item_Height);
This function is used for creating items
Item_Type- indicate the type of the created item;
Item_Name - give the name to the item;
Coordinate_X, Coordinate_Y - initial position of the item in the working area;
Item_Width, Item_Height - width and height of the created item
IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y,
Item_Width, Item_Height);
This function is used for creating items
Item_Type- indicate the type of the created item;
Item_Name - give the name to the item;
Coordinate_X, Coordinate_Y - initial position of the item in the working area;
Item_Width, Item_Height - width and height of the created item
IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y,
Item_Width, Item_Height);
This function is used for creating items
Item_Type- indicate the type of the created item;
Item_Name - give the name to the item;
Coordinate_X, Coordinate_Y - initial position of the item in the working area;
Item_Width, Item_Height - width and height of the created item
IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y,
Item_Width, Item_Height);
This function is used for creating items
Item_Type- indicate the type of the created item;
Item_Name - give the name to the item;
Coordinate_X, Coordinate_Y - initial position of the item in the working area;
Item_Width, Item_Height - width and height of the created item
IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y,
Item_Width, Item_Height);
This function is used for creating items
Item_Type- indicate the type of the created item;
Item_Name - give the name to the item;
Coordinate_X, Coordinate_Y - initial position of the item in the working area;
Item_Width, Item_Height - width and height of the created item
IR.GetItem("Page_of_Item_Location").GetItem("Item_Name")
This function is used to get the item identifier.
Page_of_Item_Location - the page with the item
Item_Name - the name of the item being changed
IR.GetState(№ state)
This function is used to refer to the item state
IR.DeleteItem(Item_ID);
This function delete graphic items.
Item_ID – reference to the item via GetItem or a variable, that stores the item
ID
Functions to work with pages and popups
•IR.PagesCount – the function is used to count pages in a project
•IR.PopupsCount – the function is used to count popups in a project
•IR.CurrentPage – the function is used to get a link to the page opened at the
moment
•IR.ShowPopup – the function is used to open a popup
•IR.ShowPage – the function is used to open a page
•IR.HidePage – the function is used to close a page
•IR.HideAllPopups – the fucntion is used close all popups
•IR.HidePopup – the function is used to close a popup
Events for GUI Listeners
IR.EVENT_ITEM_PRESS – The listener is activated when an item is pressed
IR.EVENT_ITEM_RELEASE – The listener is activated when an item is released
IR.EVENT_ITEM_CHANGE – The listener is activated when EditBox item is
changed
IR.EVENT_MOUSE_DOWN – The listener is activated when an item is clicked on
with a mouse and the mouse is moved down
IR.EVENT_MOUSE_UP– The listener is activated when an item is clicked on
with a mouse and the mouse is moved up
IR.EVENT_MOUSE_MOVE – The listener is activated when an item is clicked on
with a mouse and the mouse is moved
Events for GUI API Listeners
IR.EVENT_TOUCH_DOWN – the listener is activated when an item is pressed
with a finger and the finger moves down
IR.EVENT_TOUCH_UP – the listener is activated when an item is pressed with a
finger and the finger moves down up
IR.EVENT_TOUCH_MOVE– the listener is activated when an item is pressed
with a finger and the finger moves
IR.EVENT_ITEM_SHOW– the listener is activated when a page or a popup
opens
IR.EVENT_ITEM_HIDE– the listener is activated when a page or a popup closes
New is 3.0
IR.EVENT_ITEM_END_HOLD - the listener is activated at the end of holding a graphical
item (when releasing after HOLD event)
IR.EVENT_ITEM_LOST_FOCUS - the listener is activated when any item is released
(togetether with Release or End Of Hold). The event shows lost of focus by an item
New in 3.0
Work with clipboard is now possible
• IR.PasteFromClipboard
• IR.GetClipboard
• IR.ShowPasteHelper
• IR.CopyToClipboard
Cloning appeared
• IR.GetItem("Page 2").GetItem("Item 1").CloneItem("Item 2");
New in 3.0
Local notifications IR.SendNotification
Local notification can be sent to the same iOS device where i3 pro is launches (does not work on other OS)
Syntax
IR.SendNotification(text, delay, sound_id, badge_increment_num, id)
Text – text of notification
Delay - (sec) delay in notification appearance
sound_id - id of the sound of the notification:
• 0 – no sound
• 1 – standard iOS notification sound
• 2 - standard iOS ringtone
badge_increment_num – how to increase the number of notifications over the app icon
Id – unique identifier of the notification
IR.ClearNotification – clearing notification from the app
New in 3.0
Global listener and subscription to any tags
In iRidium 3.0 you can subscribe to changes of ANY tag, both driver feedback or EditBox text.
//Set global listener
IR.SetGlobalListener(IR.EVENT_GLOBAL_TAG_CHANGE, function(name, value)
{
IR.Log("Global Listener Activated: " + name + "tValue: " + value);
});
// Subscribe
IR.SubscribeTagChange("Drivers.KNX IP Router.Address 1");
IR.SubscribeTagChange("Drivers.AV & Custom Systems (TCP).Online");
IR.SubscribeTagChange("UI.Page 1.Item 1.Text");
IR.SubscribeTagChange("System.Time.24");
Sound API
•IR.PlaySound('File_Name',Slot_Number,Volume);
•File_Name - the name of sound file
•Slot_Number - The number of slot
•Volume - Volume level
•IR.StopSound('File_Name');
•File_Name - the name of sound file
•IR.StopSlot('Slot_Number');
•Slot_Number - The number of slot
•IR.StopAllSounds();
Gestures API
IR.AddRecognizer(Gesture_Type);
IR.RemoveRecognizer(Gesture_Type);
Event: IR.EVENT_GESTURE_BEGIN
Types of gestures:
IR.GESTURE_SWIPE_LEFT - gesture to the left
IR.GESTURE_SWIPE_RIGHT - gesture to the right
IR.GESTURE_SWIPE_UP - gesture up
IR.GESTURE_SWIPE_DOWN - gesture down
IR.GESTURE_PINCH_IN - clench
IR.GESTURE_PINCH_OUT - unclench
IR.GESTURE_LONG_PRESS - long press
IR.GESTURE_DOUBLE_TAP - doble tap
Event - IR.EVENT_GESTURE_BEGIN
IR.AddListener(IR.EVENT_GESTURE_BEGIN, IR.CurrentPage, function(gesture, x, y)
{
// Construction of the choice
switch(gesture)
{
case IR.GESTURE_SWIPE_LEFT:
button.Text = "Left"; // if a gesture to the left starts, the text to “Left” appears
break;
case IR.GESTURE_SWIPE_RIGHT:
button.Text = "Right"; // if a gesture to the right starts, the text to “Right” appears
break;
case IR.GESTURE_SWIPE_UP:
button.Text = "Up"; // if a gesture up starts, the text to “Up” appears
break;
case IR.GESTURE_SWIPE_DOWN:
button.Text = "Down"; // if a gesture down starts, the text to “Down” appears
break;
}
});
iRidium Script: Interfaces

More Related Content

Similar to iRidium Script: Interfaces

Adopting 3D Touch in your apps
Adopting 3D Touch in your appsAdopting 3D Touch in your apps
Adopting 3D Touch in your appsJuan C Catalan
 
Titanium appcelerator sdk
Titanium appcelerator sdkTitanium appcelerator sdk
Titanium appcelerator sdkAlessio Ricco
 
Android Jumpstart Jfokus
Android Jumpstart JfokusAndroid Jumpstart Jfokus
Android Jumpstart JfokusLars Vogel
 
Android development - Activities, Views & Intents
Android development - Activities, Views & IntentsAndroid development - Activities, Views & Intents
Android development - Activities, Views & IntentsLope Emano
 
iOS app dev Training - Session1
iOS app dev Training - Session1iOS app dev Training - Session1
iOS app dev Training - Session1Hussain Behestee
 
Android activity, service, and broadcast recievers
Android activity, service, and broadcast recieversAndroid activity, service, and broadcast recievers
Android activity, service, and broadcast recieversUtkarsh Mankad
 
Ruby motion勉強会 2012年7月
Ruby motion勉強会 2012年7月Ruby motion勉強会 2012年7月
Ruby motion勉強会 2012年7月Eihiro Saishu
 
12 High Level UI Event Handling
12 High Level UI Event Handling12 High Level UI Event Handling
12 High Level UI Event Handlingcorneliuskoo
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android DevelopmentAly Abdelkareem
 
Patterns in Eclipse
Patterns in EclipsePatterns in Eclipse
Patterns in EclipseMadhu Samuel
 
11.11.2020 - Unit 5-3 ACTIVITY, MENU AND SQLITE DATABASE.pptx
11.11.2020 - Unit 5-3  ACTIVITY, MENU AND SQLITE DATABASE.pptx11.11.2020 - Unit 5-3  ACTIVITY, MENU AND SQLITE DATABASE.pptx
11.11.2020 - Unit 5-3 ACTIVITY, MENU AND SQLITE DATABASE.pptxMugiiiReee
 
04 activities - Android
04   activities - Android04   activities - Android
04 activities - AndroidWingston
 
JMP103 : Extending Your App Arsenal With OpenSocial
JMP103 : Extending Your App Arsenal With OpenSocialJMP103 : Extending Your App Arsenal With OpenSocial
JMP103 : Extending Your App Arsenal With OpenSocialRyan Baxter
 
IBM Connect 2014 - JMP103: Extending Your Application Arsenal With OpenSocial
IBM Connect 2014 - JMP103: Extending Your Application Arsenal With OpenSocialIBM Connect 2014 - JMP103: Extending Your Application Arsenal With OpenSocial
IBM Connect 2014 - JMP103: Extending Your Application Arsenal With OpenSocialIBM Connections Developers
 

Similar to iRidium Script: Interfaces (20)

Adopting 3D Touch in your apps
Adopting 3D Touch in your appsAdopting 3D Touch in your apps
Adopting 3D Touch in your apps
 
Titanium appcelerator sdk
Titanium appcelerator sdkTitanium appcelerator sdk
Titanium appcelerator sdk
 
Android Jumpstart Jfokus
Android Jumpstart JfokusAndroid Jumpstart Jfokus
Android Jumpstart Jfokus
 
Android development - Activities, Views & Intents
Android development - Activities, Views & IntentsAndroid development - Activities, Views & Intents
Android development - Activities, Views & Intents
 
iOS app dev Training - Session1
iOS app dev Training - Session1iOS app dev Training - Session1
iOS app dev Training - Session1
 
Android activity, service, and broadcast recievers
Android activity, service, and broadcast recieversAndroid activity, service, and broadcast recievers
Android activity, service, and broadcast recievers
 
Fragment
Fragment Fragment
Fragment
 
Android Wear Development
Android Wear DevelopmentAndroid Wear Development
Android Wear Development
 
Ruby motion勉強会 2012年7月
Ruby motion勉強会 2012年7月Ruby motion勉強会 2012年7月
Ruby motion勉強会 2012年7月
 
12 High Level UI Event Handling
12 High Level UI Event Handling12 High Level UI Event Handling
12 High Level UI Event Handling
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Patterns in Eclipse
Patterns in EclipsePatterns in Eclipse
Patterns in Eclipse
 
11.11.2020 - Unit 5-3 ACTIVITY, MENU AND SQLITE DATABASE.pptx
11.11.2020 - Unit 5-3  ACTIVITY, MENU AND SQLITE DATABASE.pptx11.11.2020 - Unit 5-3  ACTIVITY, MENU AND SQLITE DATABASE.pptx
11.11.2020 - Unit 5-3 ACTIVITY, MENU AND SQLITE DATABASE.pptx
 
Android 3
Android 3Android 3
Android 3
 
Android開発の基礎_20101218
Android開発の基礎_20101218Android開発の基礎_20101218
Android開発の基礎_20101218
 
Awt event
Awt eventAwt event
Awt event
 
04 activities - Android
04   activities - Android04   activities - Android
04 activities - Android
 
Lab1-android
Lab1-androidLab1-android
Lab1-android
 
JMP103 : Extending Your App Arsenal With OpenSocial
JMP103 : Extending Your App Arsenal With OpenSocialJMP103 : Extending Your App Arsenal With OpenSocial
JMP103 : Extending Your App Arsenal With OpenSocial
 
IBM Connect 2014 - JMP103: Extending Your Application Arsenal With OpenSocial
IBM Connect 2014 - JMP103: Extending Your Application Arsenal With OpenSocialIBM Connect 2014 - JMP103: Extending Your Application Arsenal With OpenSocial
IBM Connect 2014 - JMP103: Extending Your Application Arsenal With OpenSocial
 

More from iRidiumMobile365

iRidium Script: Драйверы
iRidium Script: ДрайверыiRidium Script: Драйверы
iRidium Script: ДрайверыiRidiumMobile365
 
iRidium Script: Интерфейсы
iRidium Script: Интерфейсы iRidium Script: Интерфейсы
iRidium Script: Интерфейсы iRidiumMobile365
 
iRidium for Global Caché, AV & Custom Systems
iRidium for Global Caché, AV & Custom SystemsiRidium for Global Caché, AV & Custom Systems
iRidium for Global Caché, AV & Custom SystemsiRidiumMobile365
 
iRidium для AV & Custom Systems и Global Caché
iRidium для AV & Custom Systems и Global Caché iRidium для AV & Custom Systems и Global Caché
iRidium для AV & Custom Systems и Global Caché iRidiumMobile365
 
How to work in iRidium Studio?
How to work in iRidium Studio?How to work in iRidium Studio?
How to work in iRidium Studio?iRidiumMobile365
 
How to Set iRidium Server?
How to Set iRidium Server?How to Set iRidium Server?
How to Set iRidium Server?iRidiumMobile365
 
Как настраивать iRidium Server?
Как настраивать iRidium Server?Как настраивать iRidium Server?
Как настраивать iRidium Server?iRidiumMobile365
 
Как работать в iRidium Studio
Как работать в iRidium StudioКак работать в iRidium Studio
Как работать в iRidium StudioiRidiumMobile365
 
Introductory Webinar on iRidium 3.0
Introductory Webinar on  iRidium 3.0Introductory Webinar on  iRidium 3.0
Introductory Webinar on iRidium 3.0iRidiumMobile365
 
Вводный вебинар по iRidium 3.0
Вводный вебинар по iRidium 3.0Вводный вебинар по iRidium 3.0
Вводный вебинар по iRidium 3.0iRidiumMobile365
 
Как продавать iRidium
Как продавать iRidiumКак продавать iRidium
Как продавать iRidiumiRidiumMobile365
 
Совместный вебинар Teco + iRidium (часть Teco)
Совместный вебинар Teco + iRidium (часть Teco)Совместный вебинар Teco + iRidium (часть Teco)
Совместный вебинар Teco + iRidium (часть Teco)iRidiumMobile365
 
Joint webinar TECO + iRidium
Joint webinar TECO + iRidiumJoint webinar TECO + iRidium
Joint webinar TECO + iRidiumiRidiumMobile365
 

More from iRidiumMobile365 (20)

iRidium Script: Драйверы
iRidium Script: ДрайверыiRidium Script: Драйверы
iRidium Script: Драйверы
 
iRidium Script: Интерфейсы
iRidium Script: Интерфейсы iRidium Script: Интерфейсы
iRidium Script: Интерфейсы
 
iRidium 3.0 for KNX
iRidium 3.0 for KNXiRidium 3.0 for KNX
iRidium 3.0 for KNX
 
iRidium 3.0 for KNX
iRidium 3.0 for KNXiRidium 3.0 for KNX
iRidium 3.0 for KNX
 
iRidium for Global Caché, AV & Custom Systems
iRidium for Global Caché, AV & Custom SystemsiRidium for Global Caché, AV & Custom Systems
iRidium for Global Caché, AV & Custom Systems
 
iRidium для AV & Custom Systems и Global Caché
iRidium для AV & Custom Systems и Global Caché iRidium для AV & Custom Systems и Global Caché
iRidium для AV & Custom Systems и Global Caché
 
iRidium pro for HDL
iRidium pro for HDLiRidium pro for HDL
iRidium pro for HDL
 
iRidium pro для HDL
iRidium pro для HDLiRidium pro для HDL
iRidium pro для HDL
 
How to work in iRidium Studio?
How to work in iRidium Studio?How to work in iRidium Studio?
How to work in iRidium Studio?
 
How to Set iRidium Server?
How to Set iRidium Server?How to Set iRidium Server?
How to Set iRidium Server?
 
Как настраивать iRidium Server?
Как настраивать iRidium Server?Как настраивать iRidium Server?
Как настраивать iRidium Server?
 
Как работать в iRidium Studio
Как работать в iRidium StudioКак работать в iRidium Studio
Как работать в iRidium Studio
 
Introductory Webinar on iRidium 3.0
Introductory Webinar on  iRidium 3.0Introductory Webinar on  iRidium 3.0
Introductory Webinar on iRidium 3.0
 
Вводный вебинар по iRidium 3.0
Вводный вебинар по iRidium 3.0Вводный вебинар по iRidium 3.0
Вводный вебинар по iRidium 3.0
 
Как продавать iRidium
Как продавать iRidiumКак продавать iRidium
Как продавать iRidium
 
iRidium для Teco
iRidium для TecoiRidium для Teco
iRidium для Teco
 
Совместный вебинар Teco + iRidium (часть Teco)
Совместный вебинар Teco + iRidium (часть Teco)Совместный вебинар Teco + iRidium (часть Teco)
Совместный вебинар Teco + iRidium (часть Teco)
 
Joint webinar TECO + iRidium
Joint webinar TECO + iRidiumJoint webinar TECO + iRidium
Joint webinar TECO + iRidium
 
iRidium for TECO
iRidium for TECOiRidium for TECO
iRidium for TECO
 
iRidium для AMX
iRidium для AMXiRidium для AMX
iRidium для AMX
 

Recently uploaded

Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsstephieert
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Roomishabajaj13
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 

Recently uploaded (20)

Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girls
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 

iRidium Script: Interfaces

  • 1. JavaScript Enhanced capabilities of control interfaces Markov Ilya 2016 Webinar
  • 4.
  • 5.
  • 6.
  • 7. IR.AddListener(Event_Type, Reference_to_Item, function(Input_Parameters) { Body of Listener }); Event_Type - the event at which the function is performed Reference_to_Item - the reference of the item the function is assigned to Input_Parameters - parameters giving information to the function Body of Listerner – instructions that are done when a listener is activated
  • 8. Types of events for system listeners •IR.EVENT_START – Event is activated at the application launch. •IR.EVENT_WORK – Event is activated when the application is running. •IR.EVENT_EXIT – Event is activated when exiting the application. •IR.EVENT_ORIENTATION – Event is activated when changing the device orientation. •IR.EVENT_KEYBOARD_SHOW – Event is activated when opening a keyboard.
  • 9. IR.AddListener(Event_Type, Reference_to_Item, function(Input_Parameters) { Body of Listener }); Event_Type - the event at which the function is performed Reference_to_Item - the reference of the item the function is assigned to Input_Parameters - parameters giving information to the function Body of Listener – instructions that are done when a listener is activated
  • 10. IR.AddListener(Event_Type, Reference_to_Item, function (Input_Parameters) { Body of Listener }); Event_Type - the event at which the function is performed Reference_to_Item - the reference of the item the function is assigned to Input_Parameters - parameters giving information to the function Body of Listener – instructions that are done when a listener is activated
  • 11.
  • 12. Таймеры в iRidumScript. IR.SetTimeout(time, Name_Function); - This function is used for run a function when the time delay time - time delay, ms Name_Function - name of the function that contains the command IR.SetInterval(time, Name_Function); - This function is used to cycle with a given recurrence interval time - time delay, ms Name_Function - name of the function that contains the command
  • 13. Delete timer IR.ClearInterval(id); - This function is used for stopping and deleting delay the SetTimeout and SetInterval functions from the random access memory. id - identifier of the SetTimeout or SetInterval function
  • 14. IR.RemoveListener(Event_Type, Reference_to_Item, Function_Name) Event_Type - the event at which the function is performed Reference_to_Item - the reference of the item the function is assigned to Function_Name - the name of a function that contains a list of instructions
  • 15. Function to Write Data in Console IR.Log('text'); IR.Log(Variable); text – string Variable – some variable
  • 16. IR.Exit(); - This function closes the app IR.Execute('text'); - This function is used to start other programs IR.ShowKeyboard(value); - This function is used to show a keyboard.
  • 17. GUI API GUI API is a set of functions for working with graphic items in a project. These functions let you: Create graphic items Delete graphic items Refer to items and change their properties Create listeners assigned to graphical items Open and close pages and popups
  • 18. IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y, Item_Width, Item_Height); This function is used to create items Item_Type- indicate the type of the created item; Item_Name - give the name to the item; Coordinate_X, Coordinate_Y - initial position of the item in the working area; Item_Width, Item_Height - width and height of the created item
  • 19. The type of items determines what the created item will look like, that is, defines a set of properties. Types of items: •Page - IR.ITEM_PAGE •Popup - IR.ITEM_POPUP •Button - IR.ITEM_BUTTON •Trigger button - IR.ITEM_TRIGGER_BUTTON •Multistate button - IR.ITEM_MUTI_STATE_BUTTON •Up/Down button - IR.ITEM_UPDOWN_BUTTON •Level - IR.ITEM_LEVEL •Multistate level - IR.ITEM_MUTI_STATE_LEVEL •EditBox - IR.ITEM_EDIT_BOX •Virtual Key - IR.ITEM_VIRTUAL_KEY_BUTTON •Joystick - IR.ITEM_JOYSTICK
  • 20. IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y, Item_Width, Item_Height); This function is used for creating items Item_Type- indicate the type of the created item; Item_Name - give the name to the item; Coordinate_X, Coordinate_Y - initial position of the item in the working area; Item_Width, Item_Height - width and height of the created item
  • 21. IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y, Item_Width, Item_Height); This function is used for creating items Item_Type- indicate the type of the created item; Item_Name - give the name to the item; Coordinate_X, Coordinate_Y - initial position of the item in the working area; Item_Width, Item_Height - width and height of the created item
  • 22. IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y, Item_Width, Item_Height); This function is used for creating items Item_Type- indicate the type of the created item; Item_Name - give the name to the item; Coordinate_X, Coordinate_Y - initial position of the item in the working area; Item_Width, Item_Height - width and height of the created item
  • 23. IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y, Item_Width, Item_Height); This function is used for creating items Item_Type- indicate the type of the created item; Item_Name - give the name to the item; Coordinate_X, Coordinate_Y - initial position of the item in the working area; Item_Width, Item_Height - width and height of the created item
  • 24. IR.CreateItem(Item_Type, Item_Name, Coordinate_X, Coordinate_Y, Item_Width, Item_Height); This function is used for creating items Item_Type- indicate the type of the created item; Item_Name - give the name to the item; Coordinate_X, Coordinate_Y - initial position of the item in the working area; Item_Width, Item_Height - width and height of the created item
  • 25. IR.GetItem("Page_of_Item_Location").GetItem("Item_Name") This function is used to get the item identifier. Page_of_Item_Location - the page with the item Item_Name - the name of the item being changed
  • 26. IR.GetState(№ state) This function is used to refer to the item state
  • 27. IR.DeleteItem(Item_ID); This function delete graphic items. Item_ID – reference to the item via GetItem or a variable, that stores the item ID
  • 28. Functions to work with pages and popups •IR.PagesCount – the function is used to count pages in a project •IR.PopupsCount – the function is used to count popups in a project •IR.CurrentPage – the function is used to get a link to the page opened at the moment •IR.ShowPopup – the function is used to open a popup •IR.ShowPage – the function is used to open a page •IR.HidePage – the function is used to close a page •IR.HideAllPopups – the fucntion is used close all popups •IR.HidePopup – the function is used to close a popup
  • 29. Events for GUI Listeners IR.EVENT_ITEM_PRESS – The listener is activated when an item is pressed IR.EVENT_ITEM_RELEASE – The listener is activated when an item is released IR.EVENT_ITEM_CHANGE – The listener is activated when EditBox item is changed IR.EVENT_MOUSE_DOWN – The listener is activated when an item is clicked on with a mouse and the mouse is moved down IR.EVENT_MOUSE_UP– The listener is activated when an item is clicked on with a mouse and the mouse is moved up IR.EVENT_MOUSE_MOVE – The listener is activated when an item is clicked on with a mouse and the mouse is moved
  • 30. Events for GUI API Listeners IR.EVENT_TOUCH_DOWN – the listener is activated when an item is pressed with a finger and the finger moves down IR.EVENT_TOUCH_UP – the listener is activated when an item is pressed with a finger and the finger moves down up IR.EVENT_TOUCH_MOVE– the listener is activated when an item is pressed with a finger and the finger moves IR.EVENT_ITEM_SHOW– the listener is activated when a page or a popup opens IR.EVENT_ITEM_HIDE– the listener is activated when a page or a popup closes New is 3.0 IR.EVENT_ITEM_END_HOLD - the listener is activated at the end of holding a graphical item (when releasing after HOLD event) IR.EVENT_ITEM_LOST_FOCUS - the listener is activated when any item is released (togetether with Release or End Of Hold). The event shows lost of focus by an item
  • 31. New in 3.0 Work with clipboard is now possible • IR.PasteFromClipboard • IR.GetClipboard • IR.ShowPasteHelper • IR.CopyToClipboard Cloning appeared • IR.GetItem("Page 2").GetItem("Item 1").CloneItem("Item 2");
  • 32. New in 3.0 Local notifications IR.SendNotification Local notification can be sent to the same iOS device where i3 pro is launches (does not work on other OS) Syntax IR.SendNotification(text, delay, sound_id, badge_increment_num, id) Text – text of notification Delay - (sec) delay in notification appearance sound_id - id of the sound of the notification: • 0 – no sound • 1 – standard iOS notification sound • 2 - standard iOS ringtone badge_increment_num – how to increase the number of notifications over the app icon Id – unique identifier of the notification IR.ClearNotification – clearing notification from the app
  • 33. New in 3.0 Global listener and subscription to any tags In iRidium 3.0 you can subscribe to changes of ANY tag, both driver feedback or EditBox text. //Set global listener IR.SetGlobalListener(IR.EVENT_GLOBAL_TAG_CHANGE, function(name, value) { IR.Log("Global Listener Activated: " + name + "tValue: " + value); }); // Subscribe IR.SubscribeTagChange("Drivers.KNX IP Router.Address 1"); IR.SubscribeTagChange("Drivers.AV & Custom Systems (TCP).Online"); IR.SubscribeTagChange("UI.Page 1.Item 1.Text"); IR.SubscribeTagChange("System.Time.24");
  • 34. Sound API •IR.PlaySound('File_Name',Slot_Number,Volume); •File_Name - the name of sound file •Slot_Number - The number of slot •Volume - Volume level •IR.StopSound('File_Name'); •File_Name - the name of sound file •IR.StopSlot('Slot_Number'); •Slot_Number - The number of slot •IR.StopAllSounds();
  • 35. Gestures API IR.AddRecognizer(Gesture_Type); IR.RemoveRecognizer(Gesture_Type); Event: IR.EVENT_GESTURE_BEGIN Types of gestures: IR.GESTURE_SWIPE_LEFT - gesture to the left IR.GESTURE_SWIPE_RIGHT - gesture to the right IR.GESTURE_SWIPE_UP - gesture up IR.GESTURE_SWIPE_DOWN - gesture down IR.GESTURE_PINCH_IN - clench IR.GESTURE_PINCH_OUT - unclench IR.GESTURE_LONG_PRESS - long press IR.GESTURE_DOUBLE_TAP - doble tap
  • 36. Event - IR.EVENT_GESTURE_BEGIN IR.AddListener(IR.EVENT_GESTURE_BEGIN, IR.CurrentPage, function(gesture, x, y) { // Construction of the choice switch(gesture) { case IR.GESTURE_SWIPE_LEFT: button.Text = "Left"; // if a gesture to the left starts, the text to “Left” appears break; case IR.GESTURE_SWIPE_RIGHT: button.Text = "Right"; // if a gesture to the right starts, the text to “Right” appears break; case IR.GESTURE_SWIPE_UP: button.Text = "Up"; // if a gesture up starts, the text to “Up” appears break; case IR.GESTURE_SWIPE_DOWN: button.Text = "Down"; // if a gesture down starts, the text to “Down” appears break; } });