Commit 0d039d2e authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Added getCalendar to class LocalNotificationOptions

parent f1ac3e6b
Loading
Loading
Loading
Loading
+14 −0
Changes for src/android/LocalNotificationOptions.java: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,9 @@

package de.appplant.cordova.plugin;

import java.util.Calendar;
import java.util.Date;

import org.json.JSONObject;

import android.R;
@@ -50,6 +53,17 @@ public class LocalNotificationOptions {
        return date;
    }

    /**
     * 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.
     */