js: declare iosUsingObject option
This commit is contained in:
8
doric-web/dist/index.js
vendored
8
doric-web/dist/index.js
vendored
@@ -5114,12 +5114,20 @@ function animate(context) {
|
||||
|
||||
function notification(context) {
|
||||
return {
|
||||
/**
|
||||
* @param androidSystem: when set true, using global broadcast instead of local broadcast by default
|
||||
* @param iosUsingObject: when set true, using object instead of userInfo by default
|
||||
*/
|
||||
publish: (args) => {
|
||||
if (args.data !== undefined) {
|
||||
args.data = JSON.stringify(args.data);
|
||||
}
|
||||
return context.callNative('notification', 'publish', args);
|
||||
},
|
||||
/**
|
||||
* @param androidSystem: when set true, using global broadcast instead of local broadcast by default
|
||||
* @param iosUsingObject: when set true, using object instead of userInfo by default
|
||||
*/
|
||||
subscribe: (args) => {
|
||||
args.callback = context.function2Id(args.callback);
|
||||
return context.callNative('notification', 'subscribe', args);
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user