ScriptReceiverFactory class
Builds receivers for JSONP and Script requests. Each receiver is an object with following fields:
- number - unique (for the factory instance), numerical id of the receiver
- id - a string ID that can be used in DOM attributes
- name - name of the function triggering the receiver
- callback - callback function Receivers are triggered only once, on the first callback call. Receivers can be called by their name or by accessing factory object by the number key.
- Annotations
-
- @JS()
Constructors
- ScriptReceiverFactory(String prefix, String name)
-
factory
Properties
Methods
-
create(
Function callback) → ScriptReceiver -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
ScriptReceiver receiver) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited