Changes

Jump to: navigation, search

Firefox OS/Stingray/SmartScreen/

1,628 bytes added, 04:37, 3 November 2014
no edit summary
= Smart Screen =
Smart Screen is comprised of smart-system, smart-home, app deck, device deck, tv deck, and dashboard. This document tells: how to run the smart-screen in Firefox Nightly and B2G, and the design of Card UI and smart-system.
== Run in Firefox Nightly or B2G ==
# The default orientation of B2G desktop is portrait. But we may expect the default orientation is landscape in TV. So, we may have a portrait clock app in B2G desktop.
 
= Card UI =
 
Card UI is the main feature of smart screen. It comprised of smart system, smart home, app deck, device deck, tv deck, settings app, browser app, and dashboard app. Bookmarks or short-cuts in smart home are ''CARDs''. All decks has the ability to create a card to smart-home app. All decks and apps are normal app in smart-system app. Their relationships can be found as the following figure:
[[File:Stingray_Smart_Screen.png|The relationships among apps]]
 
== Smart Home ==
 
Smart home app is the default home app which hosts decks and cards. Smart home app is the owner of cards data store. It creates a card while a deck sends a mozActivity to smart home. And all decks will listen the change event or read the cards record of data store to determine if their cards are already created.
 
The card can be deleted from both deck and smart home. If card is asked to be removed from a deck, the deck sends a mozActivity to smart home app to remove it. If a card is removed from smart home, the deck may know it by read the record from data store or listen the change event of data store.
 
According to UX spec, card removed from deck app should not have a transition to smart home app. We may let data store be writable or send a mozActivity to smart system app and send an IAC message to smart home app to tell that. And this is a workaround to archive that.
 
== Smart System ==
The smart-system app is folk from phone's system app. We may find the smart-system app at {GAIA}/tv_apps/smart-system . We use the custom-prefs.js to switch to smart-system app in TV build.
Confirm
209
edits

Navigation menu