Skip to content

Commit 4c6ad66

Browse files
committed
Add API for changing set exact setting
1 parent 177cc97 commit 4c6ad66

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

com.unity.mobile.notifications/Editor/NotificationSettings.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,21 @@ public static string CustomActivityString
9999
}
100100
}
101101

102+
/// <summary>
103+
/// A set of flags indicating whether to use exact scheduling and add supporting permissions.
104+
/// </summary>
105+
public static AndroidExactSchedulingOption ExactSchedulingOption
106+
{
107+
get
108+
{
109+
return GetSettingValue<AndroidExactSchedulingOption>(BuildTargetGroup.Android, EXACT_ALARM);
110+
}
111+
set
112+
{
113+
SetSettingValue<AndroidExactSchedulingOption>(BuildTargetGroup.Android, EXACT_ALARM, value);
114+
}
115+
}
116+
102117
/// <summary>
103118
/// Add image to notification settings.
104119
/// </summary>

0 commit comments

Comments
 (0)