防作弊签到

setOnPreventCheatingSignInListener

设置防作弊签到监听

void setOnPreventCheatingSignInListener(OnPreventCheatingSignInListener listener)

@参数说明:

参数 类型 描述
listener OnPreventCheatingSignInListener 防作弊签到监听回调
signInTime int 防作弊弹框展示时间
调用示例:
HtSdk.getInstance().setOnPreventCheatingSignInListener(new OnPreventCheatingSignInListener() {
            @Override
            public void onPreventCheatingSignIn(int signInTime) {
                //接收到需要签到的回调 做相对应的操作
            }
        });

preventCheatingSignIn

防作弊签到上报

    void preventCheatingSignIn(int type,Callback callback)

@参数说明:

参数 类型 描述
type int 1开始上报签到 0上报 接受到需要签到但没签到的情况
callback Callback 回调
调用示例:
HtSdk.getInstance().preventCheatingSignIn(type, new Callback() {
                @Override
                public void success(Object result) {

                }

                @Override
                public void failed(String failed) {

                }
            });
Copyright Talkfun all right reserved,powered by Gitbook修订时间: 2023-12-28 18:45:07

results matching ""

    No results matching ""