public class NotificationSender extends Object
Code adapted from from Adriano Maia (adriano@usk.bz)
| Constructor and Description |
|---|
NotificationSender(String apiKeyFile)
Basic constructor.
|
NotificationSender(String apiKeyFile,
String appName,
String eventName)
A extended constructor that allows the definition of the name of the program (the title of
the notification) and the event name (the subtitle of the notification).
|
public NotificationSender(String apiKeyFile)
apiKeyFile - The file containing the 48-bit API key from Notify My Androidpublic NotificationSender(String apiKeyFile, String appName, String eventName)
apiKeyFile - The file containing the 48-bit API key from Notify My AndroidappName - The name of the program sending the notificationeventName - The event name (e.g. Experiment Complete!)public void notify(String message)
Copyright © 2017. All rights reserved.