Introducing Windows Runtime Hokuriku NET vol 15 2014830

  • Slides: 59
Download presentation
Introducing Windows Runtime Hokuriku. NET vol. 15 2014/8/30 Sat 遥佐保(はるか・さお)

Introducing Windows Runtime Hokuriku. NET vol. 15 2014/8/30 Sat 遥佐保(はるか・さお)

@hr_sao Room metro Osaka C++テンプレート読書会 Microsoft MVP for Client App Dev[Jan, 2010 -Dec, 2013]

@hr_sao Room metro Osaka C++テンプレート読書会 Microsoft MVP for Client App Dev[Jan, 2010 -Dec, 2013] Microsoft MVP for Client Development [Jan, 2014 -Jun, 2014] Microsoft MVP for Windows Platform Development [Jul, 2014 -Dec, 2014]

Topics 1. Windows Runtime architecture 2. Process 3. Features 4. Visual Studio Template 5.

Topics 1. Windows Runtime architecture 2. Process 3. Features 4. Visual Studio Template 5. Universal windows apps 6. Windows store 7. Add deployment

1. Windows Runtime architecture

1. Windows Runtime architecture

Windows Runtime Technology Stacks 描画 言語 Direct. X / XAML HTML / CSS -Direct.

Windows Runtime Technology Stacks 描画 言語 Direct. X / XAML HTML / CSS -Direct. X 11. 2 -Windows 8. 1 -Trident C/C++ -C++11 VM CRT C# / VB (native) FCL Internet Explorer CLR -WWAHost. exe Windows SDKs API (公開さ れてい る機能) Win. RT (native) • • • Core Controls Data and content Devices Files and Folders • • • Globalization Graphics Helpers Media Networking Printing • • • Java. Script Win. JS -Chakra Windows Store Apps Presentation Remote Desktop Security Social UI Automation User interaction Desktop Win 32 / COM

Win 32 and COM for Windows Store apps Windows Store AppsからWin 32/COMへは、原則呼び出し禁止 Windows Store

Win 32 and COM for Windows Store apps Windows Store AppsからWin 32/COMへは、原則呼び出し禁止 Windows Store Appsから呼び出しを許可されているCOMはある  http: //msdn. microsoft. com/en-us/library/br 205753 Windows Store Apps Desktop Apps Windows Runtime Windows SDKs Win 32 / COM

Use Language Windows Store Apps C/C++ -C++11 C# / VB Windows Runtime Windows SDKs

Use Language Windows Store Apps C/C++ -C++11 C# / VB Windows Runtime Windows SDKs Java. Script -Chakra

Win. MD <-> DLL メタデータを記載している Windows Runtimeの実体はEXEやDLL HKLMSoftwareMicrosoftWindows. RuntimeActivatable. Class. Id

Win. MD <-> DLL メタデータを記載している Windows Runtimeの実体はEXEやDLL HKLMSoftwareMicrosoftWindows. RuntimeActivatable. Class. Id

Application Binary Interface Windows Runtimeは全て、ABIを通じてAPI提供を行う Windows Store Apps C/C++ C# / VB Java. Script

Application Binary Interface Windows Runtimeは全て、ABIを通じてAPI提供を行う Windows Store Apps C/C++ C# / VB Java. Script Application Binary Interface Windows Runtime Windows SDKs

Win. RT API projection - C#/VB Windows Runtime Windows Store Apps C# / VB

Win. RT API projection - C#/VB Windows Runtime Windows Store Apps C# / VB 2 1 CLR Win. MD Windows Runtime Windows SDKs

Win. RT API projection - C++/CX Windows Runtime Windows Store Apps C/C++ 1 2

Win. RT API projection - C++/CX Windows Runtime Windows Store Apps C/C++ 1 2 Win. MD Windows Runtime Windows SDKs

Win. RT API projection - Java. Script Windows Runtime Windows Store Apps Java. Script

Win. RT API projection - Java. Script Windows Runtime Windows Store Apps Java. Script Internet Explorer -WWAHost. exe Win. MD Windows Runtime Windows SDKs

Windows RuntimeとABIのおかげで、各言語の相互利用が可能 Windows Store Apps C/C++ C# / VB Java. Script Application Binary Interface

Windows RuntimeとABIのおかげで、各言語の相互利用が可能 Windows Store Apps C/C++ C# / VB Java. Script Application Binary Interface Windows Runtime Windows SDKs

2. Process

2. Process

3. Features

3. Features

Package Data

Package Data

Application. Data Windows: : Storage: : Application. Data: : Current いわゆるセーブ領域 • テンポラリ保存 •

Application. Data Windows: : Storage: : Application. Data: : Current いわゆるセーブ領域 • テンポラリ保存 • ローカル保存 • ローミング C: Users[ユーザ名]App. DataLocalPackages [パッケージファミリ名]Local. State_session. State. dat

Notification ?

Notification ?

Push Notification (1) ストアアプリの初回起動で  Push. Notification. Channel. Manager  . Create. Push. Notification. Cahnell. For.

Push Notification (1) ストアアプリの初回起動で  Push. Notification. Channel. Manager  . Create. Push. Notification. Cahnell. For. Application. Async() を実行 (1) (2) Windows Push Notification Services (2) WebサービスにチャネルURI(さっき(1)で取得したもの)を  送信する ※ 30日で期限は切れるURI  (例)https: //xxx. notify. windows. com/? token=xxx

Sharing data between apps

Sharing data between apps

Sharing data - Clipboard クリップボードはシステムで 1つだけ static実装されている Windows. Application. Model. Data. Transfer. Clipboard

Sharing data - Clipboard クリップボードはシステムで 1つだけ static実装されている Windows. Application. Model. Data. Transfer. Clipboard

Sharing data - Data. Package ソースアプリ(IE)で共有したいものを Data. Packageに入れておく  ※ターゲットアプリ(FB)と共有できる Windows. Application. Model. Data. Transfer.

Sharing data - Data. Package ソースアプリ(IE)で共有したいものを Data. Packageに入れておく  ※ターゲットアプリ(FB)と共有できる Windows. Application. Model. Data. Transfer. Data. Package

Advertisement

Advertisement

* Windows ストア アプリで収益を上げるには - http: //www. microsoftvirtualacademy. com/training-courses/decode-track 1

* Windows ストア アプリで収益を上げるには - http: //www. microsoftvirtualacademy. com/training-courses/decode-track 1

Advertisement Microsoft Advertising SDKのインストール - http: //adsinapps. microsoft. com/ja-jp/sdk Microsoft pub. Center に登録 -

Advertisement Microsoft Advertising SDKのインストール - http: //adsinapps. microsoft. com/ja-jp/sdk Microsoft pub. Center に登録 - https: //pubcenter. microsoft. com Ad Control の貼り付け

Ad control テスト用のコードが簡単に利用できる <UI: Ad. Control Application. Id="d 25517 cb-12 d 4 -4699 -8

Ad control テスト用のコードが簡単に利用できる <UI: Ad. Control Application. Id="d 25517 cb-12 d 4 -4699 -8 bdc-52040 c 712 cab“ Ad. Unit. Id="10043104" /> 自分のやつは pub. CenterでGet!

4. Visual Studio Template

4. Visual Studio Template

Ex) Application. Dataを直接使う IProperty. Set^ vals = Application. Data: : Current->Local. Settings->Values; if( vals->Has.

Ex) Application. Dataを直接使う IProperty. Set^ vals = Application. Data: : Current->Local. Settings->Values; if( vals->Has. Key( "my_data” )){ vals->Remove( “my_data"); } vals->Insert( "my_data", “Hokuriku" ); VSテンプレートのNavigation. Helperクラスのpage. Stateを使う if( page. State->Has. Key( "my_data” )){ page. State->Remove( “my_data" ); } page. State->Insert( "my_data", “Hokuriku" );

5. Universal windows apps

5. Universal windows apps

これからプロジェクトを作るなら、ユニバーサル がおススメ Windows Phone → Universal apps いばらの道 Windows store apps → Universal apps

これからプロジェクトを作るなら、ユニバーサル がおススメ Windows Phone → Universal apps いばらの道 Windows store apps → Universal apps まぁ出来る Universal apps → Windows store apps WP版を使わなけ ればよい Universal apps → Windows Phone ストア版を使わ なければよい

6. Windows store

6. Windows store

Windows Developer Center https: //msdn. microsoft. com/ja-jp/windows/apps

Windows Developer Center https: //msdn. microsoft. com/ja-jp/windows/apps

Live Services site http: //msdn. microsoft. com/ja-jp/library/windows/apps/xaml/hh 868206. aspx

Live Services site http: //msdn. microsoft. com/ja-jp/library/windows/apps/xaml/hh 868206. aspx

7. App deployment

7. App deployment

How to Install (2/4) (2) Add-Appx. Package Power. Shellコマンドを用いて インストールする • 開発者ライセンスを使って実行 • パッケージの証明書入れる必要あり(Cert.

How to Install (2/4) (2) Add-Appx. Package Power. Shellコマンドを用いて インストールする • 開発者ライセンスを使って実行 • パッケージの証明書入れる必要あり(Cert. Util. exe) • Add-Appx. Packageでインストール * #めとべや 東京 2 で Sideloading Windows Store apps with Power. Shell について発表して きました 資料公開 http: //tech. guitarrapc. com/entry/2013/10/15/073820

How to Install (3/4) (3) 企業内でサイドローディングして配布する • Active. Directory参加必須 - なので無印Windows. RTはだめ(企業向け) • エンタープライズサイドローディングキーを別

How to Install (3/4) (3) 企業内でサイドローディングして配布する • Active. Directory参加必須 - なので無印Windows. RTはだめ(企業向け) • エンタープライズサイドローディングキーを別 途購入する必要がある * WINDOWS ストア アプリのサイドローディングについて http: //blogs. msdn. com/b/japan_platform_sdkwindows_sdk_support_team _blog/archive/2014/03/12/2014 -03 -12 -windows. aspx Open License, Select Plus で購入可能 Windows 8. 1 Enterprise Sideloading (10 Pack) と Windows 8. 1 Enterprise Sideloading (100 Pack) がある

Fun…

Fun…

Let’s Windows Runtime • クライアントで動作するWindows Runtimeの 仕組みを知る • Windows Runtimeの固有機能を知る • その次にVisual Studio Template/Universal

Let’s Windows Runtime • クライアントで動作するWindows Runtimeの 仕組みを知る • Windows Runtimeの固有機能を知る • その次にVisual Studio Template/Universal windows apps • Windowsストアの登録、配布、インストール も忘れずに