swipe leftSubscribe to RSS - swipe left

Creating Custom Events on Tizen

Introduction

In this article I'm going to describe a new API for creating custom events and how to use them inside Tizen application. There've been many ways of creating custom events before HTML5 came to the market, but now things got much easier.

You can simply create a custom event by calling the following line of code:

var event = new CustomEvent('mycustomevent');

What it does, is it creates a mycustomevent event instance that can be dispatched in the following way: