public class JSNotificationManager extends JSBaseScriptableObject
Constructor and Description |
---|
JSNotificationManager() |
Modifier and Type | Method and Description |
---|---|
int |
(JavaScript Function) getCurrentPercent(int theUserId,
java.lang.String theProgressBarId)
Get the percent for a known progress ID for a user.
|
void |
(JavaScript Function) publishSystemAction(int theUserId,
java.lang.Object theActionMap)
Post a system action
|
void |
(JavaScript Function) publishSystemMessage(int theUserId,
java.lang.String theMessage)
Post a system message that will show on a logged-in user's screen.
|
void |
(JavaScript Function) updateStatus(int theUserId,
java.lang.String theProgressBarId,
java.lang.String theMessage,
int thePercent,
java.lang.String theTitle)
Create or update a progress bar for a user.
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void (JavaScript Function) updateStatus(int theUserId, java.lang.String theProgressBarId, java.lang.String theMessage, int thePercent, java.lang.String theTitle)
theUserId
- User ID this progress bar is for.theProgressBarId
- Unique progress ID for this user.theMessage
- Message for this update, may be null.thePercent
- What percent should the bar show, from 1 to 100?theTitle
- Title of the progress bar, required if creating.public int (JavaScript Function) getCurrentPercent(int theUserId, java.lang.String theProgressBarId)
theUserId
- Whose progress bar?theProgressBarId
- The id of the bar we're looking for.public void (JavaScript Function) publishSystemMessage(int theUserId, java.lang.String theMessage)
theUserId
- who's it for? -2 for all users.theMessage
- What's it say?public void (JavaScript Function) publishSystemAction(int theUserId, java.lang.Object theActionMap)
theUserId
- who's it for? -2 for all users.theActionMap
- map of keys and values to pass to client-side event, including special "action" keyCopyright © 2017 MediaBeacon, Inc. All Rights Reserved.