vif-sdk
Version:
VietInfo MiniApp SDK for third party developers
42 lines (29 loc) • 1.13 kB
TypeScript
export declare function getUserInfo(): Promise<string | undefined | null>;
export declare function hello(params: HelloParam): Promise<string | undefined | null>;
declare type HelloParam = {
message: string;
};
export declare function launchMiniApp(params: LaunchMiniAppParam): Promise<string | undefined | null>;
declare type LaunchMiniAppParam = {
appId: number;
appCode: string;
appName: string;
appVersion: string;
appDescription: string | undefined | null;
appIconUrl: string | undefined | null;
appDownloadUrl: string;
};
export declare function openPhoneCall(params: OpenPhoneCallParam): Promise<void>;
declare type OpenPhoneCallParam = {
phoneNumber: string;
};
export declare function pickImage(params: PickImageParam): Promise<string | undefined | null>;
declare type PickImageParam = {
imageSource: string;
};
export declare function scanQRCode(): Promise<string | undefined | null>;
export declare function showToast(params: ShowToastParam): Promise<void>;
declare type ShowToastParam = {
message: string;
};
export { }