Method Summary
| getInfo ( ) → info |
Returns source information. |
| releaseInstance ( ) |
This method shall be called when the source instance will no longer be used. Any subscribers to notifications from this source will be unsubscribed. |
Inherited Methods
|
addEventListener
(
|
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners. |
|
removeEventListener
(
|
This method removes an event listener for a specific event. |
Methods
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to subscribe to.
listenerToiEventListener The JavaScript function that will receive events.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the application calls addEventListener with the same combination of type and listener twice.
Returns source information.
Returns:
-
Type: ToiContentService.ToiSourceInfo
the detailed information about the source.
This method shall be called when the source instance will no longer be used. Any subscribers to notifications from this source will be unsubscribed.
This method removes an event listener for a specific event.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to remove the listener from.
listenerToiEventListener The JavaScript function that was previously added as an event listener.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the listener has not previously been added.
Members
This is an Event identifier for ToiContentSourceContentAddedEvent.
This notification is triggered when content have been added.
This is an Event identifier for ToiContentSourceContentChangedEvent.
This notification is triggered when content have been changed.
This is an Event identifier for ToiContentSourceContentRemovedEvent.
This notification is triggered when content have been removed.