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

32 lines
899 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.

/**
* 弹浮层 请求参数定义
* @apiName device.notification.modal
*/
export interface IDeviceNotificationModalParams {
/** 图片地址 */
image?: string;
/** 图片地址数组。此参数与image互斥冲突时优先使用此参数。 */
banner?: string[];
/** 标题 */
title?: string;
/** 文本内容 */
content?: string;
/** 其他按钮列表 */
buttonLabels?: string[];
}
/**
* 弹浮层 返回结果定义
* @apiName device.notification.modal
*/
export interface IDeviceNotificationModalResult {
/** 被点击按钮的索引值Number从0开始 */
buttonIndex: number;
}
/**
* 弹浮层
* @apiName device.notification.modal
* @supportVersion pc: 4.2.5 ios: 2.4.0 android: 2.4.0
*/
export declare function modal$(params: IDeviceNotificationModalParams): Promise<IDeviceNotificationModalResult>;
export default modal$;