SlideShare a Scribd company logo
Event Driven Programming
Event-Driven Programming
 What is an event ?
Events are things that happen in the system you are programming
— the system produces a signal of some kind when an event
occurs, and provides a mechanism by which an action can be
automatically taken (that is, some code running) when the event
occurs.
 For example:
• The user selects, clicks, or hovers the cursor over a certain element.
• The user chooses a key on the keyboard.
• The user resizes or closes the browser window.
• A web page finishes loading.
• A form is submitted.
• A video is played, paused, or ends.
• An error occurs.
Event-Driven Programming
 In computer programming ,event driven programming is a
programming in which the flow of the program is determined
by events such as user actions (mouse clicks, key presses),
sensor output or messages from the programs.
 Event driven programming is the dominant used in graphical
user interface and other applications (eg: JavaScript web
applications)that are centered on performing certain actions
in response to user input.
 A UI event loop, also known as a message loop or event
queue, is a fundamental part of the user interface (UI)
programming model.
 It is a mechanism used by graphical user interface (GUI)
applications to handle user input and events in a responsive
and efficient manner.
 In the UI event loop, the application waits for events such as
mouse clicks, key presses, or window resize events to occur.
 When an event occurs, it is added to a queue, and the event
loop then processes each event one at a time, usually in the
order in which they were received.
 Delegation in mobile application development refers to the
process of assigning a specific task or responsibility to another
object or component in the application.
 Delegation is a common design pattern used in many
programming languages and frameworks, including mobile
app development.
 delegation is often used to handle events and user interactions.
 For example, a button in a mobile app may have a delegate
object assigned to it that handles the action of the button when
it is pressed.
The delegate object would contain the code that defines the
behavior of the button, such as navigating to a new screen or
submitting a form.
 Notifications are a crucial aspect of mobile application development
that allow apps to communicate with users even when the app is not
actively in use.
 Notifications can be used to inform users about important events,
remind them about upcoming appointments or deadlines, or simply
provide updates about the app itself.
 To implement notifications in
mobile application
development, developers can use
platform-specific
APIs provided by iOS or Android.
These APIs allow developers to send
notifications to a device's notification
center or status bar.
Unit-1.pptx

More Related Content

Similar to Unit-1.pptx

Real-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet AppReal-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet App
Mike Taylor
 
Event driven theory
Event driven theoryEvent driven theory
Event driven theory
nickywalters
 
SWE-401 - 8. Software User Interface Design
SWE-401 - 8. Software User Interface DesignSWE-401 - 8. Software User Interface Design
SWE-401 - 8. Software User Interface Design
ghayour abbas
 
Loyalty & Rewards Points Application on your mobile phone, iPhone, Android
Loyalty & Rewards Points Application on your mobile phone, iPhone, AndroidLoyalty & Rewards Points Application on your mobile phone, iPhone, Android
Loyalty & Rewards Points Application on your mobile phone, iPhone, Android
Mike Taylor
 
Workflow automation i phone application for a construction company
Workflow automation i phone application for a construction companyWorkflow automation i phone application for a construction company
Workflow automation i phone application for a construction company
Mike Taylor
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programmingChaffey College
 
UI architecture & designing
UI architecture & designingUI architecture & designing
UI architecture & designing
Mohammed Fazuluddin
 
Application for Data Sync Between Different geo Locations
Application for Data Sync Between Different geo LocationsApplication for Data Sync Between Different geo Locations
Application for Data Sync Between Different geo LocationsMike Taylor
 
Publication Non Visual Components
Publication Non Visual ComponentsPublication Non Visual Components
Publication Non Visual Components
satyres
 
The Use of Java Swing’s Components to Develop a Widget
The Use of Java Swing’s Components to Develop a WidgetThe Use of Java Swing’s Components to Develop a Widget
The Use of Java Swing’s Components to Develop a Widget
Waqas Tariq
 
Functional Requirements Of System Requirements
Functional Requirements Of System RequirementsFunctional Requirements Of System Requirements
Functional Requirements Of System Requirements
Laura Arrigo
 
Discuss the benefits of event-driven programming.Contrast event-dr.pdf
Discuss the benefits of event-driven programming.Contrast event-dr.pdfDiscuss the benefits of event-driven programming.Contrast event-dr.pdf
Discuss the benefits of event-driven programming.Contrast event-dr.pdf
arishaenterprises12
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
DivyaR219113
 
ANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.doc
Palakjaiswal43
 
Free advertising platform for businesses with IOS & Android Apps development
Free advertising platform for businesses with IOS & Android Apps developmentFree advertising platform for businesses with IOS & Android Apps development
Free advertising platform for businesses with IOS & Android Apps development
Mike Taylor
 
Free advertising platform for businesses with IOS & Android Apps development
Free advertising platform for businesses with IOS & Android Apps developmentFree advertising platform for businesses with IOS & Android Apps development
Free advertising platform for businesses with IOS & Android Apps development
Mike Taylor
 
Gps based search coupons on map view ios, android mobile application
Gps based search coupons on map view   ios, android mobile applicationGps based search coupons on map view   ios, android mobile application
Gps based search coupons on map view ios, android mobile application
Mike Taylor
 
Password security system for websites
Password security system for websitesPassword security system for websites
Password security system for websites
Mike Taylor
 
RPA Developer Kickstarter | Day 3: UI Automation and UiPath Selectors
RPA Developer Kickstarter | Day 3: UI Automation and UiPath SelectorsRPA Developer Kickstarter | Day 3: UI Automation and UiPath Selectors
RPA Developer Kickstarter | Day 3: UI Automation and UiPath Selectors
Rohit Radhakrishnan
 
How many types of software development in Oman.docx
How many types of software development in Oman.docxHow many types of software development in Oman.docx
How many types of software development in Oman.docx
Incubix Creative Business Attitude
 

Similar to Unit-1.pptx (20)

Real-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet AppReal-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet App
 
Event driven theory
Event driven theoryEvent driven theory
Event driven theory
 
SWE-401 - 8. Software User Interface Design
SWE-401 - 8. Software User Interface DesignSWE-401 - 8. Software User Interface Design
SWE-401 - 8. Software User Interface Design
 
Loyalty & Rewards Points Application on your mobile phone, iPhone, Android
Loyalty & Rewards Points Application on your mobile phone, iPhone, AndroidLoyalty & Rewards Points Application on your mobile phone, iPhone, Android
Loyalty & Rewards Points Application on your mobile phone, iPhone, Android
 
Workflow automation i phone application for a construction company
Workflow automation i phone application for a construction companyWorkflow automation i phone application for a construction company
Workflow automation i phone application for a construction company
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programming
 
UI architecture & designing
UI architecture & designingUI architecture & designing
UI architecture & designing
 
Application for Data Sync Between Different geo Locations
Application for Data Sync Between Different geo LocationsApplication for Data Sync Between Different geo Locations
Application for Data Sync Between Different geo Locations
 
Publication Non Visual Components
Publication Non Visual ComponentsPublication Non Visual Components
Publication Non Visual Components
 
The Use of Java Swing’s Components to Develop a Widget
The Use of Java Swing’s Components to Develop a WidgetThe Use of Java Swing’s Components to Develop a Widget
The Use of Java Swing’s Components to Develop a Widget
 
Functional Requirements Of System Requirements
Functional Requirements Of System RequirementsFunctional Requirements Of System Requirements
Functional Requirements Of System Requirements
 
Discuss the benefits of event-driven programming.Contrast event-dr.pdf
Discuss the benefits of event-driven programming.Contrast event-dr.pdfDiscuss the benefits of event-driven programming.Contrast event-dr.pdf
Discuss the benefits of event-driven programming.Contrast event-dr.pdf
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
ANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.doc
 
Free advertising platform for businesses with IOS & Android Apps development
Free advertising platform for businesses with IOS & Android Apps developmentFree advertising platform for businesses with IOS & Android Apps development
Free advertising platform for businesses with IOS & Android Apps development
 
Free advertising platform for businesses with IOS & Android Apps development
Free advertising platform for businesses with IOS & Android Apps developmentFree advertising platform for businesses with IOS & Android Apps development
Free advertising platform for businesses with IOS & Android Apps development
 
Gps based search coupons on map view ios, android mobile application
Gps based search coupons on map view   ios, android mobile applicationGps based search coupons on map view   ios, android mobile application
Gps based search coupons on map view ios, android mobile application
 
Password security system for websites
Password security system for websitesPassword security system for websites
Password security system for websites
 
RPA Developer Kickstarter | Day 3: UI Automation and UiPath Selectors
RPA Developer Kickstarter | Day 3: UI Automation and UiPath SelectorsRPA Developer Kickstarter | Day 3: UI Automation and UiPath Selectors
RPA Developer Kickstarter | Day 3: UI Automation and UiPath Selectors
 
How many types of software development in Oman.docx
How many types of software development in Oman.docxHow many types of software development in Oman.docx
How many types of software development in Oman.docx
 

More from VikasTuwar1

BSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptxBSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptx
VikasTuwar1
 
Python SQLite3...
Python                                                                SQLite3...Python                                                                SQLite3...
Python SQLite3...
VikasTuwar1
 
Unit-3.pptx
Unit-3.pptxUnit-3.pptx
Unit-3.pptx
VikasTuwar1
 
DataMining.ppt
DataMining.pptDataMining.ppt
DataMining.ppt
VikasTuwar1
 
PPT-4.pptx
PPT-4.pptxPPT-4.pptx
PPT-4.pptx
VikasTuwar1
 
PPT-3.pptx
PPT-3.pptxPPT-3.pptx
PPT-3.pptx
VikasTuwar1
 
PPT-2.pptx
PPT-2.pptxPPT-2.pptx
PPT-2.pptx
VikasTuwar1
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
VikasTuwar1
 
wordprocessing-150308082138-conversion-gate01.pdf
wordprocessing-150308082138-conversion-gate01.pdfwordprocessing-150308082138-conversion-gate01.pdf
wordprocessing-150308082138-conversion-gate01.pdf
VikasTuwar1
 
Word Processing.ppt
Word Processing.pptWord Processing.ppt
Word Processing.ppt
VikasTuwar1
 

More from VikasTuwar1 (10)

BSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptxBSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptx
 
Python SQLite3...
Python                                                                SQLite3...Python                                                                SQLite3...
Python SQLite3...
 
Unit-3.pptx
Unit-3.pptxUnit-3.pptx
Unit-3.pptx
 
DataMining.ppt
DataMining.pptDataMining.ppt
DataMining.ppt
 
PPT-4.pptx
PPT-4.pptxPPT-4.pptx
PPT-4.pptx
 
PPT-3.pptx
PPT-3.pptxPPT-3.pptx
PPT-3.pptx
 
PPT-2.pptx
PPT-2.pptxPPT-2.pptx
PPT-2.pptx
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
wordprocessing-150308082138-conversion-gate01.pdf
wordprocessing-150308082138-conversion-gate01.pdfwordprocessing-150308082138-conversion-gate01.pdf
wordprocessing-150308082138-conversion-gate01.pdf
 
Word Processing.ppt
Word Processing.pptWord Processing.ppt
Word Processing.ppt
 

Recently uploaded

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 

Unit-1.pptx

  • 2. Event-Driven Programming  What is an event ? Events are things that happen in the system you are programming — the system produces a signal of some kind when an event occurs, and provides a mechanism by which an action can be automatically taken (that is, some code running) when the event occurs.  For example: • The user selects, clicks, or hovers the cursor over a certain element. • The user chooses a key on the keyboard. • The user resizes or closes the browser window. • A web page finishes loading. • A form is submitted. • A video is played, paused, or ends. • An error occurs.
  • 3. Event-Driven Programming  In computer programming ,event driven programming is a programming in which the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor output or messages from the programs.  Event driven programming is the dominant used in graphical user interface and other applications (eg: JavaScript web applications)that are centered on performing certain actions in response to user input.
  • 4.  A UI event loop, also known as a message loop or event queue, is a fundamental part of the user interface (UI) programming model.  It is a mechanism used by graphical user interface (GUI) applications to handle user input and events in a responsive and efficient manner.  In the UI event loop, the application waits for events such as mouse clicks, key presses, or window resize events to occur.  When an event occurs, it is added to a queue, and the event loop then processes each event one at a time, usually in the order in which they were received.
  • 5.  Delegation in mobile application development refers to the process of assigning a specific task or responsibility to another object or component in the application.  Delegation is a common design pattern used in many programming languages and frameworks, including mobile app development.  delegation is often used to handle events and user interactions.  For example, a button in a mobile app may have a delegate object assigned to it that handles the action of the button when it is pressed. The delegate object would contain the code that defines the behavior of the button, such as navigating to a new screen or submitting a form.
  • 6.  Notifications are a crucial aspect of mobile application development that allow apps to communicate with users even when the app is not actively in use.  Notifications can be used to inform users about important events, remind them about upcoming appointments or deadlines, or simply provide updates about the app itself.  To implement notifications in mobile application development, developers can use platform-specific APIs provided by iOS or Android. These APIs allow developers to send notifications to a device's notification center or status bar.