com.leafdigital.notification.api
Class NotificationListMsg
java.lang.Object
leafchat.core.api.Msg
com.leafdigital.notification.api.NotificationListMsg
public class NotificationListMsg
- extends Msg
Message sent to identify available notification types. These are events
that the application might want to notify the user about by a popup
message.
Plugins that use notification should request this message and, on
receiving it, call addType(String, boolean)
to register their
types.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationListMsg
public NotificationListMsg()
addType
public void addType(java.lang.String type,
boolean defaultOn)
- Adds a type. It is safe to add a type multiple times.
- Parameters:
type
- String defining the type. This should be a user-friendly
string as it will be displayed in a preferences interface.defaultOn
-
getTypes
public java.lang.String[] getTypes()
- Returns:
- Array of all type names so far
getDefaultTypes
public java.lang.String[] getDefaultTypes()
- Returns:
- Array of all default type names so far
Copyright © 2011 Samuel Marshall. All rights reserved.