NewTestHomeActivity.kt 819 Bytes
Newer Older
徐健 committed
1 2 3
package com.yidianling.tests.home

import com.alibaba.android.arouter.facade.annotation.Route
4
import com.channel.ydl_flutter_base.base.BaseFlutterActivity
严久程 committed
5 6
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.tests.home.config.TestBIConstants
徐健 committed
7 8 9 10 11 12 13
import com.yidianling.tests.home.plugin.TestPlugin
import org.json.JSONObject

/**
 * flutter版测评首页
 * Created by xj on 2019/11/19.
 */
严久程 committed
14
@Route(path = "/ceshi/home")
15
class NewTestHomeActivity : BaseFlutterActivity() {
徐健 committed
16
    override fun initialRoute(): String {
徐健 committed
17
        return "test/home"
徐健 committed
18 19 20
    }

    override fun initChannelPlugin(jsonObject: JSONObject) {
21
        TestPlugin.Companion.register(this)
徐健 committed
22
    }
严久程 committed
23 24 25 26 27

    override fun onResume() {
        super.onResume()
        ActionCountUtils.count(TestBIConstants.YDL_TEST_MAIN_PAGE_VISIT)
    }
徐健 committed
28
}