Trigger Reference of GS2-Datastore Script
Reference for event triggers that call extended scripts, as defined in GS2-Datastore
doneUpload
Event trigger to call GS2-Script before reporting upload completion.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
dataObject | DataObject | Data object |
objectUrl | string | URL of the uploaded object |
Result
| Type | Require | Default | Limitation | Description |
---|
permit | bool | ✓ | | | Allow upload completion report |
Implementation Example
namespace = args.namespace
dataObject = args.dataObject
objectUrl = args.objectUrl
result = {
permit=permit
}
doneUploadDone
GS2-Script called after reporting upload completion.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
dataObject | DataObject | Data object |
Result
| Type | Require | Default | Limitation | Description |
---|
Implementation Example
namespace = args.namespace
dataObject = args.dataObject
result = {
}