Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
8eda6a2d
Commit
8eda6a2d
authored
Sep 01, 2013
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Options erweitert
parent
9a0ca7d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
15 deletions
+55
-15
LocalNotificationOptions.java
src/android/LocalNotificationOptions.java
+55
-15
No files found.
src/android/LocalNotificationOptions.java
View file @
8eda6a2d
...
...
@@ -22,11 +22,15 @@ public class LocalNotificationOptions {
* Options that can be set when this plugin is invoked
*/
private
Calendar
calendar
=
Calendar
.
getInstance
();
private
String
title
=
""
;
private
String
subTitle
=
""
;
private
String
ticker
=
""
;
private
boolean
repeatDaily
=
false
;
private
String
notificationId
=
null
;
private
String
title
=
null
;
private
String
subTitle
=
null
;
private
String
sound
=
null
;
private
long
interval
=
0
;
private
String
foreground
=
null
;
private
String
background
=
null
;
private
int
icon
=
-
1
;
private
int
badge
=
0
;
private
String
id
=
null
;
/**
* Parse options passed from javascript part of this plugin.
...
...
@@ -48,9 +52,13 @@ public class LocalNotificationOptions {
subTitle
=
lines
[
1
];
}
ticker
=
options
.
optString
(
"ticker"
);
repeatDaily
=
options
.
optBoolean
(
"repeatDaily"
);
notificationId
=
options
.
optString
(
"id"
);
sound
=
options
.
optString
(
"sound"
);
icon
=
options
.
optInt
(
"icon"
);
//interval = options.optString("repeat");
foreground
=
options
.
optString
(
"foreground"
);
background
=
options
.
optString
(
"background"
);
badge
=
options
.
optInt
(
"badge"
);
id
=
options
.
optString
(
"id"
);
}
/**
...
...
@@ -75,20 +83,51 @@ public class LocalNotificationOptions {
}
/**
* Gibt den
Ticker
der Notification an.
* Gibt den
Pfad zum Sound
der Notification an.
*/
public
String
get
Ticker
()
{
return
ticker
;
public
String
get
Sound
()
{
return
sound
;
}
public
boolean
isRepeatDaily
()
{
return
repeatDaily
;
/**
* Gibt den Pfad zum Icon der Notification an.
*/
public
int
getIcon
()
{
return
icon
;
}
/**
* Gibt den Pfad zur Callback-Funktion der Notification an.
*/
public
String
getForeground
()
{
return
foreground
;
}
/**
* Gibt den Pfad zur Callback-Funktion der Notification an.
*/
public
String
getBackground
()
{
return
background
;
}
/**
* Gibt das Intervall an, in dem die Notification aufpoppen soll (daily, weekly, monthly, yearly)
*/
public
long
getInterval
()
{
return
interval
;
}
/**
* Gibt die Badge-Nummer der Notification an.
*/
public
int
getBadge
()
{
return
badge
;
}
/**
* Gibt die Callback-ID des PluginResults an.
*/
public
String
get
Notification
Id
()
{
return
notificationI
d
;
public
String
getId
()
{
return
i
d
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment