@hyext/types-ext-sdk-hy 4.2.6 → 4.2.7-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +62 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -730,6 +730,23 @@ namespace ad {
|
|
|
730
730
|
* @returns 调用结果
|
|
731
731
|
*/
|
|
732
732
|
function showRewardedVideoAd(params: ShowRewardedVideoAdReq): Promise<ShowRewardedVideoAdRsp>;
|
|
733
|
+
/**
|
|
734
|
+
* 设置原生模板广告样式
|
|
735
|
+
* @param params - 传入参数
|
|
736
|
+
* @returns 调用结果
|
|
737
|
+
*/
|
|
738
|
+
function setCustomAdStyle(params: SetCustomAdStyleReq): Promise<SetCustomAdStyleRsp>;
|
|
739
|
+
/**
|
|
740
|
+
* 监听原生模版广告组件的reward消息
|
|
741
|
+
* @param params - 传入参数
|
|
742
|
+
* @returns 调用结果
|
|
743
|
+
*/
|
|
744
|
+
function onCustomAdReward(params: OnCustomAdRewardReq): Promise<void>;
|
|
745
|
+
/**
|
|
746
|
+
* 取消监听原生模版广告组件的reward消息
|
|
747
|
+
* @returns 调用结果
|
|
748
|
+
*/
|
|
749
|
+
function offCustomAdReward(): Promise<void>;
|
|
733
750
|
}
|
|
734
751
|
|
|
735
752
|
/**
|
|
@@ -1355,6 +1372,51 @@ type ShowRewardedVideoAdRsp = {
|
|
|
1355
1372
|
errno: number;
|
|
1356
1373
|
};
|
|
1357
1374
|
|
|
1375
|
+
/**
|
|
1376
|
+
* 设置原生模板广告样式参数
|
|
1377
|
+
* @property customAdId - 原生模板广告组件id
|
|
1378
|
+
* @property style - 原生模板广告组件的样式
|
|
1379
|
+
*/
|
|
1380
|
+
type SetCustomAdStyleReq = {
|
|
1381
|
+
customAdId: string;
|
|
1382
|
+
style: CustomAdStyle;
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* 设置原生模板广告样式结果
|
|
1387
|
+
* @property errMsg - 错误信息,如果调用成功返回 ${apiName}:ok
|
|
1388
|
+
* @property errCode - 错误码,成功时为 0,失败时参考下面的错误码说明
|
|
1389
|
+
* @property errno - 错误码,成功时为 0,失败时参考下面的错误码说明
|
|
1390
|
+
*/
|
|
1391
|
+
type SetCustomAdStyleRsp = {
|
|
1392
|
+
errMsg: string;
|
|
1393
|
+
errCode: number;
|
|
1394
|
+
errno: number;
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* 原生模版广告组件reward消息
|
|
1399
|
+
* @property customAdId - 原生模板广告组件id
|
|
1400
|
+
* @property isSuccess - 是否成功
|
|
1401
|
+
*/
|
|
1402
|
+
type OnCustomAdRewardNotice = {
|
|
1403
|
+
customAdId: string;
|
|
1404
|
+
isSuccess: boolean;
|
|
1405
|
+
};
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* @param notice - 原生模版广告组件reward消息
|
|
1409
|
+
*/
|
|
1410
|
+
type OnCustomAdRewardCallback = (notice: OnCustomAdRewardNotice) => void;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* 监听原生模版广告组件的reward消息参数
|
|
1414
|
+
* @property callback - 消息回调函数
|
|
1415
|
+
*/
|
|
1416
|
+
type OnCustomAdRewardReq = {
|
|
1417
|
+
callback: OnCustomAdRewardCallback;
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1358
1420
|
/**
|
|
1359
1421
|
* 高级模块
|
|
1360
1422
|
*/
|
package/package.json
CHANGED