public static class Schedule.NotificationOptions extends Object
NotificationOptions options = new NotificationOptions(true, 60);
Constructor and Description |
---|
NotificationOptions(boolean enabled,
int notificationTime)
Create a
NotificationOptions with the specified initial state and notification times. |
Modifier and Type | Method and Description |
---|---|
int |
getNotificationTime()
Get the time (in minutes) before the scheduled departure time to notify the user.
|
boolean |
isEnabled()
Get the state of notifications.
|
void |
setEnabled(boolean enabled)
Set the state of notifications.
|
void |
setNotificationTime(int notificationTime)
Set the time interval (in minutes) before the scheduled departure time to notify the user.
|
public NotificationOptions(boolean enabled, int notificationTime)
NotificationOptions
with the specified initial state and notification times.enabled
- Initial state of notifications (true
if enabled, false
otherwise).notificationTime
- Time (in minutes) prior to the scheduled departure time to notify
the user, must not be null
.public int getNotificationTime()
public void setNotificationTime(int notificationTime)
notificationTime
- Time (in minutes).public boolean isEnabled()
true
if notifications are enabled, false
otherwise.public void setEnabled(boolean enabled)
enabled
- true
if notifications should be enabled, false
otherwise.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.