windows 10 开发学习资料,Windows-universal-samples学习笔记系列一:App settings
2015-04-03 12:58
323 查看
windows 10 通用代码范例:
https://github.com/Microsoft/Windows-universal-samples
相关视频:https://mix.office.com/watch/fhm25mkkj3cw
Windows 10 Advertising SDK Walkthrough :
https://msdn.microsoft.com/library/mt125365(v=msads.100).aspx
以下就按分类说明:
App package information sample(App包相关的信息)
This sample shows you how to get package info by using the Windows Runtime packaging API (Windows.ApplicationModel.Package and Windows.ApplicationModel.PackageId).
The sample covers these key tasks:
Getting the package identity using Package.Id
Getting the package directory using Package.InstalledLocation
Getting package dependencies using Package.Dependencies
The sample covers these new tasks for Windows 10:
Getting the package description using Package.Description
Getting the package display name using Package.DisplayName
Determining whether the package is a bundle package using Package.IsBundle
Determining whether the package is installed in development mode using Package.IsDevelopmentMode
Determining whether the package is a resource package using Package.IsResourcePackage
Getting package logo using Package.Logo
Getting publisher display name of the package using Package.PublisherDisplayName
Application data sample (数据存储,可设置所有设备同步roaming或仅当前设备local)
This sample shows you how to store and retrieve data that is specific to each user and Windows Runtime app by using the Windows Runtime application data APIs (Windows.Storage.ApplicationData and so on).
Application data includes session state, user preferences, and other settings. It is created, read, updated, and deleted when the app is running. The operating system manages these data stores for your app:
local: Data that exists on the current device and is backed up in the cloud
roaming: Data that exists on all devices on which the user has installed the app
temporary: Data that could be removed by the system any time the app isn't running
localcache: Persistent data that exists only on the current device
The sample covers these key tasks:
Reading and writing settings to an app data store
Reading and writing files to an app data store
Responding to roaming events
Store sample (比如应用内购买)
This sample demonstrates how to perform in-app feature or product purchases operations and use the licensing API provided by the Windows Store to determine the license status of an app or a feature that is enabled by an in-app purchase.
The Windows Store supports the following types of in-app purchases:
Purchasing the app itself.
Purchasing a durable in-app product, meaning that after the purchase, the user owns the product until it (optionally) expires. For example, a new game level is typically a durable in-app product.
Purchasing a consumable in-app product, meaning that the user can purchase it multiple times. For example, a game power-up is typically a consumable in-app product. The act of confirming that the user received the consumable product is known as "fulfillment".
The sample app demonstrates the following tasks.
Check the current license status of an app.
Check the expiration date of an app trial period.
Check if an in-app product has been purchased through an in-app purchase.
Perform an in-app purchase to buy the app.
Perform an in-app purchase to buy an in-app product.
Check the expiration date (if any) of a product.
Confirm the fulfillment of an in-app consumable product.
Perform an in-app purchase transaction using the Windows Store commerce platform.
Perform an in-app purchase to buy an app feature or product from a large purchase catalog.
Launch the Windows Store page for the app, so users can purchase the app or write a review.
Generate a receipt that can be used to verify the successful completion of the transaction.
https://github.com/Microsoft/Windows-universal-samples
相关视频:https://mix.office.com/watch/fhm25mkkj3cw
Windows 10 Advertising SDK Walkthrough :
https://msdn.microsoft.com/library/mt125365(v=msads.100).aspx
以下就按分类说明:
App settings | ||
---|---|---|
App package information | Application data | Store |
This sample shows you how to get package info by using the Windows Runtime packaging API (Windows.ApplicationModel.Package and Windows.ApplicationModel.PackageId).
The sample covers these key tasks:
Getting the package identity using Package.Id
Getting the package directory using Package.InstalledLocation
Getting package dependencies using Package.Dependencies
The sample covers these new tasks for Windows 10:
Getting the package description using Package.Description
Getting the package display name using Package.DisplayName
Determining whether the package is a bundle package using Package.IsBundle
Determining whether the package is installed in development mode using Package.IsDevelopmentMode
Determining whether the package is a resource package using Package.IsResourcePackage
Getting package logo using Package.Logo
Getting publisher display name of the package using Package.PublisherDisplayName
Application data sample (数据存储,可设置所有设备同步roaming或仅当前设备local)
This sample shows you how to store and retrieve data that is specific to each user and Windows Runtime app by using the Windows Runtime application data APIs (Windows.Storage.ApplicationData and so on).
Application data includes session state, user preferences, and other settings. It is created, read, updated, and deleted when the app is running. The operating system manages these data stores for your app:
local: Data that exists on the current device and is backed up in the cloud
roaming: Data that exists on all devices on which the user has installed the app
temporary: Data that could be removed by the system any time the app isn't running
localcache: Persistent data that exists only on the current device
The sample covers these key tasks:
Reading and writing settings to an app data store
Reading and writing files to an app data store
Responding to roaming events
Store sample (比如应用内购买)
This sample demonstrates how to perform in-app feature or product purchases operations and use the licensing API provided by the Windows Store to determine the license status of an app or a feature that is enabled by an in-app purchase.
The Windows Store supports the following types of in-app purchases:
Purchasing the app itself.
Purchasing a durable in-app product, meaning that after the purchase, the user owns the product until it (optionally) expires. For example, a new game level is typically a durable in-app product.
Purchasing a consumable in-app product, meaning that the user can purchase it multiple times. For example, a game power-up is typically a consumable in-app product. The act of confirming that the user received the consumable product is known as "fulfillment".
The sample app demonstrates the following tasks.
Check the current license status of an app.
Check the expiration date of an app trial period.
Check if an in-app product has been purchased through an in-app purchase.
Perform an in-app purchase to buy the app.
Perform an in-app purchase to buy an in-app product.
Check the expiration date (if any) of a product.
Confirm the fulfillment of an in-app consumable product.
Perform an in-app purchase transaction using the Windows Store commerce platform.
Perform an in-app purchase to buy an app feature or product from a large purchase catalog.
Launch the Windows Store page for the app, so users can purchase the app or write a review.
Generate a receipt that can be used to verify the successful completion of the transaction.
相关文章推荐
- OSGi 入门开发学习资料必读系列
- Windows内核驱动开发入门学习资料
- Windows-universal-samples学习笔记系列三:Navigation
- android最全学习资料及路线整理分享 (安卓视频教程 从入门到大师 android开发环境搭建 windows和MAC 安卓源码大全4000套)
- 【Android开发学习系列】(1)——Windows下Android开发环境配置
- UWP应用开发系列视频教程简介 - Built for Windows 10
- Windows内核驱动开发入门学习资料
- Windows-universal-samples学习笔记系列五:Custom user interactions
- 从头开始学习开发django系列-1、配置环境,以windows为例
- iPhone开发入门系列1(iOS8+Swift版)天天打靶APP学习10-11
- Windows内核驱动开发入门学习资料
- Scala学习1————scala开发环境搭建(windows 10)
- Windows内核驱动开发入门学习资料
- Windows内核驱动开发入门学习资料
- MVA Universal Windows Apps系列学习笔记1
- IOS开发系列--学习资料整理
- 在Windows7/10上快速搭建深度学习框架Caffe开发环境
- 1 kinect for windows(k4w) sdk介绍与环境配置以及k4w开发的一些学习资料
- Windows内核驱动开发入门学习资料
- Windows-universal-samples学习笔记系列四:Data