YdlCommonOut.kt 820 Bytes
Newer Older
1
package com.ydl.ydlcommon.router
konghaorui committed
2 3

import android.app.Application
YKai committed
4
import androidx.annotation.StringRes
5 6 7
import com.ydl.ydlcommon.base.BaseApp
import com.ydl.ydlcommon.data.PlatformDataManager
import com.ydl.ydlcommon.utils.remind.ToastHelper
konghaorui committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

/**
 * author : Zhangwenchao
 * e-mail : zhangwch@yidianling.com
 * time   : 2018/04/24
 *
 *  项目通用模块对外提供的方法
 */
class YdlCommonOut {

    companion object {

        fun showToast(content: String) {
            ToastHelper.show(content)
        }

        fun showToast(@StringRes stringId: Int) {
            ToastHelper.show(stringId)
        }

        fun getApp(): Application {
29
            return BaseApp.getApp()
konghaorui committed
30 31 32
        }

        fun getChannelName(): String {
33
            return PlatformDataManager.getRam().getChannelName()
konghaorui committed
34 35 36
        }
    }
}