Exploring the Future Potential of AI-Enabled Smartphone Processors
WinRT Holy COw
1.
2.
3. DllImport "avicap32.dll" "capCreateCaptureWindow"
static extern int
string int
int int int int
int int
DllImport "avicap32.dll"
static extern bool
int
MarshalAs UnmanagedType ref string
int
MarshalAs UnmanagedType ref string
int
// more and more of the same
5. using Windows.Media.Capture;
var new CameraCaptureUI
new Size
var await CameraCaptureUIMode
if
var new BitmapImage
await FileAccessMode
6. Metro style app
Language Support
(CLR, WinJS, CRT)
Language Projection
UI Pickers Controls Media
Web Host (HTML,
CSS, JavaScript))
Windows XAML Storage Network …
Metadata &
Namespace
Windows Runtime Core Runtime Broker
Windows Core
8. You already have the skills to build
Metro style apps with C# and VB
9. • The relationship between .NET and the Windows
Runtime
• Using Windows Runtime APIs from C# and Visual
Basic
• Building Window Runtime Components in C# and
Visual Basic
17. Using the Windows Runtime
feels natural and familiar
from C# and Visual Basic
18.
19. var new CameraCaptureUI
new Size
var await CameraCaptureUIMode
if
var new BitmapImage
await FileAccessMode
20.
21.
22. try
{
var new CameraCaptureUI
new Size
catch (Exception e)
{
//Exception handling code
}
ComException
23. var picker = new FileOpenPicker();
picker.FileTypeFilter.Add("*");
var files = await picker.PickMultipleFilesAsync();
foreach (var file in files)
{
lbFiles.Items.Add(file.FileName);
}
PickMultipleFilesOperation PickMultipleFilesAsync();
public sealed class PickMultipleFilesOperation :
IAsyncOperation<IReadOnlyList<StorageFile>>, IAsyncInfo
24. var picker = new FileOpenPicker();
picker.FileTypeFilter.Add("*");
var files = await picker.PickMultipleFilesAsync();
foreach (StorageFile file in files)
{
lbFiles.Items.Add(file.FileName);
}
System.Collections.Generic.IReadOnlyList
<Windows.Storage.StorageFile>
25. var picker = new FileOpenPicker();
picker.FileTypeFilter.Add("*");
var files = await picker.PickMultipleFilesAsync();
foreach (StorageFile file in files)
{
lbFiles.Items.Add(file.FileName);
}
System.Collections.Generic.IReadOnlyList
Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFile>
<Windows.Storage.StorageFile>