CH-J Tools Mobile通过 SSH 管理服务器
菜单
已发布的源代码

CH-J Tools Mobile

浏览特定应用版本的目录和文件。

下载源代码 ZIP
CH-J / CH-J Tools Mobile 175 个文件
sm-mobile-20261016T185235Z-8e93ecc1b59a 添加时间: · 构建时间:
MainActivity.kt 添加时间: 未记录日期 1.1 KB · 32 行
代码 下载文件
1package eu.chj.sm_mobile
3import android.content.Intent
4import android.os.Bundle
5import android.view.WindowManager
6import io.flutter.embedding.android.FlutterFragmentActivity
7import io.flutter.embedding.engine.FlutterEngine
8import io.flutter.plugin.common.MethodChannel
10class MainActivity : FlutterFragmentActivity() {
11 private lateinit var documents: Documents
13 override fun onCreate(savedInstanceState: Bundle?) {
14 // Registered before the activity starts, as the result API requires.
15 documents = Documents(this)
16 super.onCreate(savedInstanceState)
17 window.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
18 documents.handle(intent)
19 }
21 override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
22 super.configureFlutterEngine(flutterEngine)
23 val channel = MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "eu.chj.sm_mobile/documents")
24 channel.setMethodCallHandler(documents)
25 documents.channel = channel
26 }
28 override fun onNewIntent(intent: Intent) {
29 super.onNewIntent(intent)
30 documents.handle(intent)
31 }
SHA-25688ae556cd9d15dc2c295ef7b43e26a031da38b924b3a22fafd36e7dd7172d585

CH-J Proprietary Software License 1.14 · 源代码依据 CH-J Proprietary Software License 1.14 提供。公开源代码不会改变许可条款,也不会授予额外权利。

压缩包 SHA-25646e427a43e87af091004f36145590bda8fe90086dfb0f631afeb5029fb0b5655
文件