通知测试
parent
0257188f1a
commit
a601353861
|
@ -1 +1 @@
|
|||
Subproject commit e647ce5f166044b1d548d726b819b6808dcba974
|
||||
Subproject commit e308df9b0c54a031513e53e6ccea63cb23316105
|
|
@ -9,9 +9,7 @@ public partial class SROptions
|
|||
[Category("通知相关"), DisplayName("通知id")]
|
||||
public int NotificationID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 初始化通知
|
||||
/// </summary>
|
||||
[Category("通知相关"), DisplayName("初始化通知")]
|
||||
public void InitNotification()
|
||||
{
|
||||
Notification.Init();
|
||||
|
@ -21,7 +19,7 @@ public partial class SROptions
|
|||
public void SendNotification()
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
DateTime dateTime = DateTime.UtcNow.AddSeconds(10f);
|
||||
DateTime dateTime = DateTime.Now.AddSeconds(10f);
|
||||
NotificationID = Notification.Android.SetNotification("通知", "测试通知", DateTime.UtcNow.AddSeconds(5f), "small", "large", "测试", true);
|
||||
DebugUtil.Log($"发送安卓测试通知,通知id:{NotificationID},时间:{dateTime}");
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue