Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying JavaScript Mobile Application Development
  • Table Of Contents Toc
  • Feedback & Rating feedback
JavaScript Mobile Application Development

JavaScript Mobile Application Development

By : Saleh
4.8 (4)
close
close
JavaScript Mobile Application Development

JavaScript Mobile Application Development

4.8 (4)
By: Saleh

Overview of this book

If you are a native mobile developer, with some familiarity with the common web technologies of JavaScript, CSS, and HTML, or if you are a web developer, then this learning guide will add great value and impact to your work. Learning how to develop mobile applications using Apache Cordova is of particular importance if you are looking to develop applications on a variety of different platforms efficiently.
Table of Contents (10 chapters)
close
close
9
Index

The Mega App model and API


The Mega App model contains only one JavaScript object that represents the voice and photo memo data, as shown in the following code snippet:

var MemoItem = function(memoItem) {
    this.id = memoItem.id || "Memo_" + (new Date()).getTime();
    this.title = memoItem.title || "";
    this.desc = memoItem.desc || "";
    this.type = memoItem.type || "voice";
    this.location = memoItem.location || "";
    this.mtime = memoItem.mtime || "";
};

The MemoItem object contains the following attributes:

  • id: This represents the memo ID (its default value is unique as it includes a numeric value of the current time in milliseconds)

  • title: This represents the memo title

  • desc: This represents the memo description

  • type: This represents the memo type, and it can be "voice" or "photo" (its default value is "voice")

  • location: This represents the location of the media (audio or photo) file in the device's filesystem

  • mtime: This represents the time when the memo was created

We mainly...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
JavaScript Mobile Application Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon