AlarmAbsolute(Date date, long period) is deprecated
By Alex McKenzie
03 Feb 2022 13:47
English
0 Replies
I keep getting this error message:
Since Tizen 4.0 constructor AlarmAbsolute(Date date, long period) is deprecated, thus period attribute should not be used.
My alarm code looks like this:
/* Sets an alarm on January 1st 2014 08:00. */
var date = new Date(2014, 0, 1, 8, 0);
var alarm1 = new tizen.AlarmAbsolute(date);
tizen.alarm.add(alarm1, appId);
Any ideas on what i can do to stop getting this warning message?
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
All Categories
General Support
Tizen .NET
Web Application Development
Native Application Development
SDK & IDE
--------
--------