forked from microsoft/Windows-universal-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b2568a
commit 17b1dbd
Showing
474 changed files
with
17,599 additions
and
2,085 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|ARM"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>ARM</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x86"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x86</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|ARM"> | ||
<Configuration>Release</Configuration> | ||
<Platform>ARM</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x86"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x86</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>c2adb9af-edb3-4e57-8056-9d0531d4a6b2</ProjectGuid> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0'"> | ||
<VisualStudioVersion>14.0</VisualStudioVersion> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" /> | ||
<PropertyGroup> | ||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> | ||
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion> | ||
<MinimumVisualStudioVersion>$(VersionNumberMajor).$(VersionNumberMinor)</MinimumVisualStudioVersion> | ||
<DefaultLanguage>en-US</DefaultLanguage> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<AppxManifest Include="package.appxmanifest"> | ||
<SubType>Designer</SubType> | ||
</AppxManifest> | ||
<Content Include="..\..\..\SharedContent\js\default.html"> | ||
<Link>default.html</Link> | ||
</Content> | ||
<Content Include="html\scenario1-currentActivity.html" /> | ||
<Content Include="html\scenario2-history.html" /> | ||
<Content Include="html\scenario3-changeEvents.html" /> | ||
<Content Include="html\scenario4-backgroundActivity.html" /> | ||
<Content Include="..\..\..\SharedContent\media\microsoft-sdk.png"> | ||
<Link>images\microsoft-sdk.png</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\media\smalltile-sdk.png"> | ||
<Link>images\smallTile-sdk.png</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\media\splash-sdk.png"> | ||
<Link>images\splash-sdk.png</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png"> | ||
<Link>images\storeLogo-sdk.png</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\media\tile-sdk.png"> | ||
<Link>images\tile-sdk.png</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\media\windows-sdk.png"> | ||
<Link>images\windows-sdk.png</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\js\default.js"> | ||
<Link>js\default.js</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\css\default.css"> | ||
<Link>css\default.css</Link> | ||
</Content> | ||
<Content Include="js\activitySensorBackgroundTask.js" /> | ||
<Content Include="js\sample-configuration.js" /> | ||
<Content Include="js\scenario1-currentActivity.js" /> | ||
<Content Include="js\scenario2-history.js" /> | ||
<Content Include="js\scenario3-changeEvents.js" /> | ||
<Content Include="js\scenario4-backgroundActivity.js" /> | ||
<Content Include="..\..\..\SharedContent\js\Microsoft.WinJS\css\ui-dark.css"> | ||
<Link>Microsoft.WinJS.4.0\css\ui-dark.css</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\Microsoft.WinJS\css\ui-light.css"> | ||
<Link>Microsoft.WinJS.4.0\css\ui-light.css</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\Microsoft.WinJS\js\en-US\ui.strings.js"> | ||
<Link>Microsoft.WinJS.4.0\js\en-US\ui.strings.js</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\Microsoft.WinJS\js\WinJS.intellisense-setup.js"> | ||
<Link>Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\Microsoft.WinJS\js\WinJS.intellisense.js"> | ||
<Link>Microsoft.WinJS.4.0\js\WinJS.intellisense.js</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\Microsoft.WinJS\fonts\Symbols.ttf"> | ||
<Link>Microsoft.WinJS.4.0\fonts\Symbols.ttf</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\Microsoft.WinJS\js\base.js"> | ||
<Link>Microsoft.WinJS.4.0\js\base.js</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\Microsoft.WinJS\js\ui.js"> | ||
<Link>Microsoft.WinJS.4.0\js\ui.js</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\sample-utils\footer.html"> | ||
<Link>sample-utils\footer.html</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\sample-utils\header.html"> | ||
<Link>sample-utils\header.html</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\sample-utils\sample-utils.js"> | ||
<Link>sample-utils\sample-utils.js</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\sample-utils\scenario-select.css"> | ||
<Link>sample-utils\scenario-select.css</Link> | ||
</Content> | ||
<Content Include="..\..\..\SharedContent\js\sample-utils\scenario-select.html"> | ||
<Link>sample-utils\scenario-select.html</Link> | ||
</Content> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below then uncomment | ||
that target and the DisableFastUpToDateCheck PropertyGroup. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
<PropertyGroup> | ||
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> | ||
</PropertyGroup> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.23107.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "ActivitySensor", "ActivitySensor.jsproj", "{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|ARM = Debug|ARM | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|ARM = Release|ARM | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|ARM.ActiveCfg = Debug|ARM | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|ARM.Build.0 = Debug|ARM | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|ARM.Deploy.0 = Debug|ARM | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x64.ActiveCfg = Debug|x64 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x64.Build.0 = Debug|x64 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x64.Deploy.0 = Debug|x64 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x86.ActiveCfg = Debug|x86 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x86.Build.0 = Debug|x86 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x86.Deploy.0 = Debug|x86 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|ARM.ActiveCfg = Release|ARM | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|ARM.Build.0 = Release|ARM | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|ARM.Deploy.0 = Release|ARM | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x64.ActiveCfg = Release|x64 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x64.Build.0 = Release|x64 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x64.Deploy.0 = Release|x64 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x86.ActiveCfg = Release|x86 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x86.Build.0 = Release|x86 | ||
{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x86.Deploy.0 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<Package | ||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | ||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" | ||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | ||
IgnorableNamespaces="uap mp"> | ||
|
||
<Identity | ||
Name="Microsoft.SDKSamples.ActivitySensor.JS" | ||
Version="1.0.0.0" | ||
Publisher="CN=Microsoft" /> | ||
<mp:PhoneIdentity PhoneProductId="c626e8fb-e702-4957-b0c6-5d8616342b2b" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> | ||
|
||
<Properties> | ||
<DisplayName>Activity Sensor JS Sample</DisplayName> | ||
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName> | ||
<Logo>images\storelogo-sdk.png</Logo> | ||
</Properties> | ||
|
||
<Dependencies> | ||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10586.0" MaxVersionTested="10.0.10586.0" /> | ||
</Dependencies> | ||
|
||
<Resources> | ||
<Resource Language="x-generate" /> | ||
</Resources> | ||
|
||
<Applications> | ||
<Application Id="App" StartPage="default.html"> | ||
<Extensions> | ||
<Extension Category="windows.backgroundTasks" StartPage="js\activitySensorBackgroundTask.js"> | ||
<BackgroundTasks> | ||
<Task Type="general" /> | ||
</BackgroundTasks> | ||
</Extension> | ||
</Extensions> | ||
<uap:VisualElements | ||
DisplayName="Activity Sensor JS Sample" | ||
Description="Activity Sensor JS Sample" | ||
BackgroundColor="#00b2f0" | ||
Square150x150Logo="images\storelogo-sdk.png" | ||
Square44x44Logo="images\smalltile-sdk.png"> | ||
<uap:SplashScreen Image="images\splash-sdk.png" /> | ||
<uap:DefaultTile> | ||
<uap:ShowNameOnTiles> | ||
<uap:ShowOn Tile="square150x150Logo" /> | ||
</uap:ShowNameOnTiles> | ||
</uap:DefaultTile> | ||
</uap:VisualElements> | ||
</Application> | ||
</Applications> | ||
|
||
<Capabilities> | ||
<DeviceCapability Name="activity" /> | ||
</Capabilities> | ||
</Package> |
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
Samples/ActivitySensor/js/html/scenario1-currentActivity.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- | ||
Copyright (c) Microsoft Corporation. All rights reserved | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
<title></title> | ||
<script src="/js/scenario1-currentActivity.js"></script> | ||
</head> | ||
|
||
<body class="win-type-body"> | ||
<div> | ||
<p>Gets the default activity sensor and displays its current activity reading.</p> | ||
<p> | ||
<button class="win-button" id="getCurrentActivity">Get current activity</button> | ||
</p> | ||
</div> | ||
<table id="scenarioOutput" style="display: none"> | ||
<tr><td>Activity:</td><td id="activity">no data</td></tr> | ||
<tr><td>Confidence:</td><td id="confidence">no data</td></tr> | ||
<tr><td>Timestamp:</td><td id="timestamp">no data</td></tr> | ||
</table> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- | ||
Copyright (c) Microsoft Corporation. All rights reserved | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
<title></title> | ||
<script src="/js/scenario2-history.js"></script> | ||
</head> | ||
|
||
<body class="win-type-body"> | ||
<div> | ||
<p>Gets the activity history from at most 1 day ago. Displays the first entry, last entry, and count of entries.</p> | ||
<p> | ||
<button class="win-button" id="getActivityHistory">Get activity history</button> | ||
</p> | ||
</div> | ||
<table id="scenarioOutput" style="display: none"> | ||
<tr><td>First Activity:</td><td id="activity1"></td></tr> | ||
<tr><td>First Confidence:</td><td id="confidence1"></td></tr> | ||
<tr><td>First Timestamp:</td><td id="timestamp1"></td></tr> | ||
<tr><td>Last Activity:</td><td id="activityN"></td></tr> | ||
<tr><td>Last Confidence:</td><td id="confidenceN"></td></tr> | ||
<tr><td>Last Timestamp:</td><td id="timestampN"></td></tr> | ||
</table> | ||
</body> | ||
|
||
</html> |
27 changes: 27 additions & 0 deletions
27
Samples/ActivitySensor/js/html/scenario3-changeEvents.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- | ||
Copyright (c) Microsoft Corporation. All rights reserved | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
<title></title> | ||
<script src="/js/scenario3-changeEvents.js"></script> | ||
</head> | ||
|
||
<body class="win-type-body"> | ||
<div> | ||
<p>Subscribes to reading events and displays the updated reading.</p> | ||
<p> | ||
<button class="win-button" id="enableReadingChanged">ReadingChanged On</button> | ||
<button class="win-button" id="disableReadingChanged" disabled>ReadingChanged Off</button> | ||
</p> | ||
</div> | ||
<table id="scenarioOutput"> | ||
<tr><td>Activity:</td><td id="activity"></td></tr> | ||
<tr><td>Confidence:</td><td id="confidence"></td></tr> | ||
<tr><td>Timestamp:</td><td id="timestamp"></td></tr> | ||
</table> | ||
</body> | ||
|
||
</html> |
30 changes: 30 additions & 0 deletions
30
Samples/ActivitySensor/js/html/scenario4-backgroundActivity.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- | ||
Copyright (c) Microsoft Corporation. All rights reserved | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
<title></title> | ||
<script src="/js/scenario4-backgroundActivity.js"></script> | ||
</head> | ||
|
||
<body class="win-type-body"> | ||
<div> | ||
<p>Registers a background task for activity changes. The background task runs whenever the most likely activity changes to/from any of the subscribed activities.</p> | ||
<p> | ||
<button class="action win-button" id="registerTask">Register Task</button> | ||
<button class="action win-button" id="unregisterTask">Unregister Task</button> | ||
</p> | ||
</div> | ||
<table id="scenarioOutput"> | ||
<tr><td>Task Registration:</td><td id="taskRegistration"></td></tr> | ||
<tr><td>Task Status:</td><td id="taskStatus"></td></tr> | ||
<tr><td>Report Count:</td><td id="reportCount"></td></tr> | ||
<tr><td>Last Activity:</td><td id="lastActivity"></td></tr> | ||
<tr><td>Last Confidence:</td><td id="lastConfidence"></td></tr> | ||
<tr><td>Last Timestamp:</td><td id="lastTimestamp"></td></tr> | ||
</table> | ||
</body> | ||
|
||
</html> |
File renamed without changes.
Oops, something went wrong.