platform for building windows store apps agu suur frontend developer axinom
TRANSCRIPT
AgendaIntroduction to the Windows 8 Platform Introduction to the APIs, Store
Let’s build something!
You’ll leave understanding:
The Windows 8 Platform investments
Windows reimaginedA new UI where touch is a first-class citizen along with full mouse-and-keyboard support
New development models built on WinRT, including native support for HTML/CSS/JS, C#/XAML, C++/DirectX
Designed from the chipset up for multiple form-factors – tablets, laptops, desktops & all-in-ones
The Windows Store on every device with a full commerce platform and flexibility
Windows 8 Experience Fast and fluid user experience
Responsive, alive, beautiful
Immersive and full-screen Focuses attention on your apps
Touch-first with full keyboard and mouseEnables your choice of interaction
Web of apps working together Apps are connected to each other and the cloud
Experience for all PC devices and architectures No compromise across new form factors, desktops and laptops
Windows 8 Platform
Metro style Apps
HTMLJavaScri
pt
CC++
C#VB
Desktop Apps
Win32
.NET / SL
Internet Explore
r
Communication
& Data
Application Model
Devices & Printing
WinRT APIsGraphics &
Media
Syst
em
Serv
ices
JavaScript(Chakra)
CC++
C#VB
XAML HTML / CSSVie
wM
od
el
Contr
olle
r
Windows Core OS ServicesCore
DirectX
Language projections
WindowsRuntime
Object(or Component)
Writtenin C++, C#, VB
Windows Metadata
C++ App
Pro
jecti
on
CLR
C#/VB App
Pro
jecti
on
HTML AppCh
akra
Pro
jecti
on
Windows Runtime APIs
FundamentalsApplication
Services Threading/Timers Memory Management Authentication Cryptography Globalization
Devices
Geolocation Portable Sensors NFC
User Interface
SVG Tiles Input Accessibility Printing
HTML5/CSS XAML DirectX Controls Data Binding
Communications & Data
Memory Management XML Networking SMS
Notifications Streams
Contracts Local & Cloud Storage Web
Media
Playback Capture PlayTo Visual Effects
What did we see… WinRT APIs are asychronous
WinRT APIs provide rich access to device, OS and services
WinRT APIs feel natural in C#, Javascript and C++
Windows Store app acquisition
Windows Store
backend
Package ManagerWindows
Store install
Execution Engine
Extension
Handler
stage Single instance store
register Registration Information
Building blocks of an app package App Manifest contains all information needed to deploythe app
Blockmap contains hashes of all files within the app package
Signature validates the integrity of the app package
AppXManifest.xml
BlockMap
Signature
Zip Central Directory
Files / Assets
.appx package
App manifest and capabilities Explicitly declares the app integration endpoints File capabilities (music/pictures/videos/documents libraries,
removable storage) Devices (webcam, microphone, location, sms, proximity);
extensible to new device classes Network and identity (internet, private network, credentials) File type associations App contracts (search, share, etc.)
Contained in appxmanifest.xml; Visual Studio provides editor
Process Isolation
OS
User data Devices Communications Handlers Tiles Cryptography … …
Bro
ker
s
Process1Local context
Web contextAppData
Local Temp Roaming
Contracts
Process2Local context
Web contextAppData
Local Temp Roaming
Dire
ct A
PIs
Process state transitions
RunningApp
Suspended
App
suspending Terminated
App
Low Resources
Code gets to runNo code
runs App not running
resuming
App gets 5s to handle suspend
App is not notified before
termination
Apps are notified when they have been resumed
User Launches App
Splash screen
App data vs. User data
User data
Documents Photos Music Videos
App data
Settings FilesSession State
Local Cache
Recap: App execution
Connected
Seamless data access Data Roaming
Powerful
PerformantNative platform
Confident
Capabilities driven High isolation
Unprecedented Reach
Optimized for Discoverability
Transparent Approval Process
Flexible Business Models
Maximizing Developer Revenue
The Windows Store (more later)
Paid downloads, trials, and in-app purchases. You keep 70% of the first $25k, 80% of the rest
Microsoft Confidential 24
Robust analytics for free, including demographics, reviews, referrals, and usage & performance statistics
Use your own commerce engine and keep 100%or use the Windows Store’s full commerce platform
The Windows Store
Advertise with Microsoft Advertising or your preferred ad vendor.
Traits of a great app (more later)
Leverage Microsoft design
Be Fast and fluid
Snap and scale beautifully
Use the right contracts
Invest in a great Tile
Feel connected and alive
Roam to the cloud
Embrace Microsoft design principles
Windows reimaginedA new Windows UI where touch is a first-class citizen along with full mouse-and-keyboard support
New development models built on WinRT, including native support for HTML/CSS/JS, C#/XAML, C++/DirectX
Designed from the chipset up for multiple form-factors – tablets, laptops, desktops & all-in-ones
The Windows Store on every device with a full commerce platform and flexibility