zhizhi/node_modules/dingtalk-jsapi/api/device/notification/prompt.d.ts

32 lines
850 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 弹窗prompt 请求参数定义
* @apiName device.notification.prompt
*/
export interface IDeviceNotificationPromptParams {
/** 消息内容 */
message: string;
/** 标题 */
title?: string;
/** 默认提示 */
defaultText?: string;
/** 按钮名称 */
buttonLabels?: string[];
}
/**
* 弹窗prompt 返回结果定义
* @apiName device.notification.prompt
*/
export interface IDeviceNotificationPromptResult {
/** 被点击按钮的索引值Number类型从0开始 */
buttonIndex: number;
/** 输入的值 */
value: string;
}
/**
* 弹窗prompt
* @apiName device.notification.prompt
* @supportVersion pc: 2.7.0 ios: 2.4.0 android: 2.4.0
*/
export declare function prompt$(params: IDeviceNotificationPromptParams): Promise<IDeviceNotificationPromptResult>;
export default prompt$;