-
Notifications
You must be signed in to change notification settings - Fork 724
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
10 changed files
with
110 additions
and
7 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/Uno.UWP/ApplicationModel/Background/BackgroundAccessStatus.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Windows.ApplicationModel.Background | ||
{ | ||
public enum BackgroundAccessStatus | ||
{ | ||
Unspecified, | ||
AllowedWithAlwaysOnRealTimeConnectivity, | ||
AllowedMayUseActiveRealTimeConnectivity, | ||
Denied, | ||
AlwaysAllowed, | ||
AllowedSubjectToSystemPolicy, | ||
DeniedBySystemPolicy, | ||
DeniedByUser, | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Uno.UWP/ApplicationModel/Background/IBackgroundCondition.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Windows.ApplicationModel.Background | ||
{ | ||
public partial interface IBackgroundCondition | ||
{ | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Uno.UWP/ApplicationModel/Background/SystemCondition.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Windows.ApplicationModel.Background | ||
{ | ||
public partial class SystemCondition : IBackgroundCondition | ||
{ | ||
public SystemConditionType ConditionType { get; } | ||
public SystemCondition(SystemConditionType conditionType) | ||
{ | ||
ConditionType = conditionType; | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/Uno.UWP/ApplicationModel/Background/SystemConditionType.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Windows.ApplicationModel.Background | ||
{ | ||
public enum SystemConditionType | ||
{ | ||
Invalid, | ||
UserPresent, | ||
UserNotPresent, | ||
InternetAvailable, | ||
InternetNotAvailable, | ||
SessionConnected, | ||
SessionDisconnected, | ||
FreeNetworkAvailable, | ||
BackgroundWorkCostNotHigh, | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/Uno.UWP/ApplicationModel/Background/SystemTriggerType.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Windows.ApplicationModel.Background | ||
{ | ||
public enum SystemTriggerType | ||
{ | ||
Invalid, | ||
SmsReceived, | ||
UserPresent, | ||
UserAway, | ||
NetworkStateChange, | ||
ControlChannelReset, | ||
InternetAvailable, | ||
SessionConnected, | ||
ServicingComplete, | ||
LockScreenApplicationAdded, | ||
LockScreenApplicationRemoved, | ||
TimeZoneChange, | ||
OnlineIdConnectedStateChange, | ||
BackgroundWorkCostChange, | ||
PowerStateChange, | ||
DefaultSignInAccountChange, | ||
} | ||
} |
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
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
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