public abstract class App
extends Object
| Constructor and Description |
|---|
App() |
| Modifier and Type | Method and Description |
|---|---|
Any |
config()
Retrieve a configuration parameter.
|
void |
config(Any conf)
Sets the configuration parameters.
|
String |
config(String key)
Retrieve a configuration parameter.
|
String |
id()
Retreive the unique ID of this app instance.
|
String |
locale()
Retrieve the preferred user language.
|
String |
name()
Retreive the user-given name of this app instance.
|
void |
notifyOwner(String message,
Object data)
Sends a notification to the app owner.
|
void |
notifyUser(String message)
Sends a notification to the app user.
|
public void notifyOwner(String message,
Object data)
data - Some other useful data that will be converted to JSONmessage - A textual notepublic void notifyUser(String message)
message - A textual notepublic void config(Any conf)
public String config(String key)
key - The configuration key name or null to retreive all configuration parameterspublic Any config()
public String locale()
public String id()
public String name()