iOS:notification plugin

This commit is contained in:
pengfei.zhou
2020-01-09 09:54:08 +08:00
committed by osborn
parent 0087c5bda4
commit 9dabd3b1db
9 changed files with 98 additions and 13 deletions

4
doric-js/index.d.ts vendored
View File

@@ -797,13 +797,13 @@ declare module 'doric/lib/src/native/notification' {
import { BridgeContext } from "doric/lib/src/runtime/global";
export function notification(context: BridgeContext): {
publish: (args: {
biz: string;
biz?: string | undefined;
name: string;
data?: object | undefined;
androidSystem?: boolean | undefined;
}) => Promise<any>;
subscribe: (args: {
biz: string;
biz?: string | undefined;
name: string;
callback: (data?: any) => void;
androidSystem?: boolean | undefined;