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

32 lines
899 B
TypeScript
Raw Normal View History

/**
*
* @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$;