forked from xamarin/ios-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
597 changed files
with
14,532 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AirLocate", "AirLocate\AirLocate.csproj", "{718D5D6E-871A-4A42-9867-3D1F0552B0F4}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|iPhoneSimulator = Debug|iPhoneSimulator | ||
Release|iPhoneSimulator = Release|iPhoneSimulator | ||
Debug|iPhone = Debug|iPhone | ||
Release|iPhone = Release|iPhone | ||
Ad-Hoc|iPhone = Ad-Hoc|iPhone | ||
AppStore|iPhone = AppStore|iPhone | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.AppStore|iPhone.ActiveCfg = AppStore|iPhone | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.AppStore|iPhone.Build.0 = AppStore|iPhone | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Debug|iPhone.ActiveCfg = Debug|iPhone | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Debug|iPhone.Build.0 = Debug|iPhone | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Release|iPhone.ActiveCfg = Release|iPhone | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Release|iPhone.Build.0 = Release|iPhone | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator | ||
{718D5D6E-871A-4A42-9867-3D1F0552B0F4}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator | ||
EndGlobalSection | ||
GlobalSection(MonoDevelopProperties) = preSolution | ||
StartupItem = AirLocate\AirLocate.csproj | ||
Policies = $0 | ||
$0.TextStylePolicy = $1 | ||
$1.inheritsSet = null | ||
$1.scope = text/x-csharp | ||
$0.CSharpFormattingPolicy = $2 | ||
$2.ElseIfNewLinePlacement = SameLine | ||
$2.AfterDelegateDeclarationParameterComma = True | ||
$2.inheritsSet = Mono | ||
$2.inheritsScope = text/x-csharp | ||
$2.scope = text/x-csharp | ||
EndGlobalSection | ||
EndGlobal |
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,134 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform> | ||
<ProductVersion>10.0.0</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{718D5D6E-871A-4A42-9867-3D1F0552B0F4}</ProjectGuid> | ||
<ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>AirLocate</RootNamespace> | ||
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix> | ||
<AssemblyName>AirLocation</AssemblyName> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<MtouchLink>None</MtouchLink> | ||
<ConsolePause>false</ConsolePause> | ||
<MtouchDebug>true</MtouchDebug> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\iPhoneSimulator\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<MtouchLink>None</MtouchLink> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\iPhone\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<MtouchDebug>true</MtouchDebug> | ||
<ConsolePause>false</ConsolePause> | ||
<CodesignKey>iPhone Developer</CodesignKey> | ||
<IpaPackageName> | ||
</IpaPackageName> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\iPhone\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<CodesignKey>iPhone Developer</CodesignKey> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<CodesignKey>iPhone Distribution</CodesignKey> | ||
<BuildIpa>true</BuildIpa> | ||
<ConsolePause>false</ConsolePause> | ||
<CodesignProvision>Automatic:AdHoc</CodesignProvision> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\iPhone\AppStore</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<CodesignKey>iPhone Distribution</CodesignKey> | ||
<ConsolePause>false</ConsolePause> | ||
<CodesignProvision>Automatic:AppStore</CodesignProvision> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="monotouch" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Resources\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Info.plist" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="AppDelegate.cs" /> | ||
<Compile Include="MenuViewController.cs" /> | ||
<Compile Include="MenuViewController.designer.cs"> | ||
<DependentUpon>MenuViewController.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="MonitoringViewController.cs" /> | ||
<Compile Include="MonitoringViewController.designer.cs"> | ||
<DependentUpon>MonitoringViewController.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="ConfigurationViewController.cs" /> | ||
<Compile Include="ConfigurationViewController.designer.cs"> | ||
<DependentUpon>ConfigurationViewController.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="Defaults.cs" /> | ||
<Compile Include="RangingViewController.cs" /> | ||
<Compile Include="RangingViewController.designer.cs"> | ||
<DependentUpon>RangingViewController.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="CalibrationCalculator.cs" /> | ||
<Compile Include="CalibrationEndViewController.cs" /> | ||
<Compile Include="CalibrationBeginViewController.cs" /> | ||
<Compile Include="UuidPickerView.cs" /> | ||
<Compile Include="Helpers.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<ItemGroup> | ||
<InterfaceDefinition Include="MainStoryboard.storyboard" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<BundleResource Include="Resources\Icon.png" /> | ||
<BundleResource Include="Resources\Icon%402x.png" /> | ||
<BundleResource Include="Resources\Icon-72.png" /> | ||
<BundleResource Include="Resources\Icon-Small.png" /> | ||
<BundleResource Include="Resources\Icon-Small%402x.png" /> | ||
<BundleResource Include="Resources\Icon-Small-50.png" /> | ||
<BundleResource Include="Resources\Default.png" /> | ||
<BundleResource Include="Resources\Default%402x.png" /> | ||
<BundleResource Include="Resources\Default-568h%402x.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ITunesArtwork Include="Resources\iTunesArtwork" /> | ||
<ITunesArtwork Include="Resources\iTunesArtwork%402x" /> | ||
</ItemGroup> | ||
</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,56 @@ | ||
using System; | ||
using MonoTouch.CoreLocation; | ||
using MonoTouch.Foundation; | ||
using MonoTouch.UIKit; | ||
|
||
namespace AirLocate { | ||
|
||
[Register ("AppDelegate")] | ||
public partial class AppDelegate : UIApplicationDelegate { | ||
|
||
CLLocationManager locationManager; | ||
|
||
public override UIWindow Window { | ||
get; | ||
set; | ||
} | ||
|
||
public override void FinishedLaunching (UIApplication application) | ||
{ | ||
locationManager = new CLLocationManager (); | ||
|
||
// A user can transition in or out of a region while the application is not running. | ||
// When this happens CoreLocation will launch the application momentarily, call this delegate method | ||
// and we will let the user know via a local notification. | ||
locationManager.DidDetermineState += (sender, e) => { | ||
string body = null; | ||
if (e.State == CLRegionState.Inside) | ||
body = "You're inside the region"; | ||
else if (e.State == CLRegionState.Outside) | ||
body = "You're outside the region"; | ||
|
||
if (body != null) { | ||
var notification = new UILocalNotification () { AlertBody = body }; | ||
|
||
// If the application is in the foreground, it will get called back to ReceivedLocalNotification | ||
// If its not, iOS will display the notification to the user. | ||
UIApplication.SharedApplication.PresentLocationNotificationNow (notification); | ||
} | ||
}; | ||
} | ||
|
||
public override void ReceivedLocalNotification (UIApplication application, UILocalNotification notification) | ||
{ | ||
// If the application is in the foreground, we will notify the user of the region's state via an alert. | ||
new UIAlertView (notification.AlertBody, String.Empty, null, "OK", null).Show (); | ||
} | ||
|
||
static void Main (string[] args) | ||
{ | ||
// if you want to use a different Application Delegate class from "AppDelegate" | ||
// you can specify it here. | ||
UIApplication.Main (args, null, "AppDelegate"); | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.