kotlinCode.kt 357 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package uts.sdk.modules.utsSyntaxcase

import android.os.Build
import io.dcloud.uts.UTSAndroid


object NativeCode {

    fun getPhoneInfo():String{
        return "${Build.BOARD}-${Build.USER}"
    }

    fun finishActivity(){
        UTSAndroid.getUniActivity()?.finish()
    }
	
    fun getJavaUser():JavaUser{
      return JavaUser("张三",12)
    }

}