JPushUtils.kt 405 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
package com.ydl.ydlcommon.utils

import cn.jpush.android.api.JPushInterface
import com.ydl.ydlcommon.base.BaseApp


/**
 * 推送工具类
 * Created by hgw on 2018/3/21.
 */
object JPushUtils{

13 14 15 16 17 18
    fun getRegistrationID(): String? {
        return if (DeviceTool.checkHasAgreeSecret()) {
            JPushInterface.getRegistrationID(BaseApp.getApp());
        } else {
            null;
        }
19 20
    }
}