supersdk

文档中心

文档中心

下载文档

Auxiliary interface document


Splash screen control

Interface description: Turn off the splash screen, and the initialization will display the splash screen of sdk_logo.png under assets. The splash screen is displayed by default. If the game needs turn off the splash screen, modify the invoking method of initialization.

Interface invoke: Invoke another overloaded method of initialization, passing in the parameters:

//关闭闪屏
Map<String, String> params = new HashMap<String, String>();
params.put("closeLogo", "true");
SuperSDK.init(this, params, mAthenaListener);

Module disabled

Interface Description: Prevents a module from uncontrollable crash. You can invoke this interface to disable specific modules.

//以下为禁用平台模块。
SuperSDK.forbidModule(BCoreConst.platform.MODULE_NAME);

Open log

Interface description: During the integration process, you can open the log to view the interface invoking log, and turn off the log by default.志

//控制打印日志,打开或关闭
SuperSDK.openLog(true);//打开true,关闭false;

##Add supersdk event tracking(optional)

Interface description: supersdk does some event tracking in some interfaces. If the game needs to add some extra event tracking, you can invoke this interface. The data reported by this interface will be displayed in the SuperSDK background.

Interface invoke

Map<String, String> params = new HashMap<String, String>();
params.put(BCoreConst.platform.KEY_EVENT_ID, "event_id");//必传,为埋点设置事件ID,如enterGame、createRole等。
params.put(BCoreConst.platform.KEY_DESC "事件描述");     //选传,如不传,则为空,如某某用户注销了,他是通过悬浮窗注销的等。
SuperSDK.invoke(BCoreConst.platform.MODULE_NAME, BCoreConst.platform.FUNC_REPORT, params);