Commit 0d039d2e by Sebastián Katzer

Added getCalendar to class LocalNotificationOptions

parent f1ac3e6b
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
package de.appplant.cordova.plugin; package de.appplant.cordova.plugin;
import java.util.Calendar;
import java.util.Date;
import org.json.JSONObject; import org.json.JSONObject;
import android.R; import android.R;
...@@ -51,6 +54,17 @@ public class LocalNotificationOptions { ...@@ -51,6 +54,17 @@ public class LocalNotificationOptions {
} }
/** /**
* Gibt die Zeit als Kalender an.
*/
public Calendar getCalendar () {
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date(getDate()));
return calendar;
}
/**
* Gibt die Nachricht der Notification an. * Gibt die Nachricht der Notification an.
*/ */
public String getMessage () { public String getMessage () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment