@nativescript/flutter
Version:
Flutter for NativeScript
15 lines (14 loc) • 456 B
TypeScript
import { ContentView } from '@nativescript/core';
export type FlutterChannelType = {
[key: string]: (...args: any[]) => Promise<any>;
};
export interface IFlutterMessage {
type: string;
data?: any;
}
export declare class FlutterCommon extends ContentView {
static sendMessageReplyEvent: string;
static DEBUG: boolean;
channel: FlutterChannelType;
sendMessage(type: string, data?: any, callback?: (value?: any) => void): void;
}