-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from domoticz/beta-development
Beta development (v0.1.2)
- Loading branch information
Showing
911 changed files
with
63,081 additions
and
17,662 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
Binary file not shown.
Binary file not shown.
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
30 changes: 19 additions & 11 deletions
30
NL.HNOGames.Domoticz/NL.HNOGames.Domoticz.Android/Helpers/CloseApplication.cs
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 |
---|---|---|
@@ -1,17 +1,25 @@ | ||
using NL.HNOGames.Domoticz.Droid.Helpers; | ||
using NL.HNOGames.Domoticz.Helpers; | ||
|
||
|
||
[assembly: Xamarin.Forms.Dependency(typeof(CloseApplication))] | ||
namespace NL.HNOGames.Domoticz.Droid.Helpers | ||
{ | ||
public class CloseApplication : ICloseApplication | ||
{ | ||
/// <summary> | ||
/// Close application | ||
/// </summary> | ||
public void Close() | ||
{ | ||
Android.OS.Process.KillProcess(Android.OS.Process.MyPid()); | ||
} | ||
} | ||
} | ||
/// <summary> | ||
/// Defines the <see cref="CloseApplication" /> | ||
/// </summary> | ||
public class CloseApplication : ICloseApplication | ||
{ | ||
#region Public | ||
|
||
/// <summary> | ||
/// Close application | ||
/// </summary> | ||
public void Close() | ||
{ | ||
Android.OS.Process.KillProcess(Android.OS.Process.MyPid()); | ||
} | ||
|
||
#endregion | ||
} | ||
} |
Oops, something went wrong.