mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Added compiledTimestamp function in YukiHookAPI
This commit is contained in:
@@ -78,6 +78,20 @@ object Status
|
||||
|
||||
> 当前 `YukiHookAPI` 的状态。
|
||||
|
||||
### compiledTimestamp <span class="symbol">- field</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
val compiledTimestamp: Long
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.1.0` `新增`
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 获取项目编译完成的时间戳 (当前本地时间)。
|
||||
|
||||
### isXposedEnvironment <span class="symbol">- field</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
|
@@ -88,6 +88,12 @@ object YukiHookAPI {
|
||||
*/
|
||||
object Status {
|
||||
|
||||
/**
|
||||
* 获取项目编译完成的时间戳 (当前本地时间)
|
||||
* @return [Long]
|
||||
*/
|
||||
val compiledTimestamp get() = YukiHookBridge.moduleGeneratedVersion.toLongOrNull() ?: 0L
|
||||
|
||||
/**
|
||||
* 获取当前是否为 (Xposed) 宿主环境
|
||||
* @return [Boolean]
|
||||
|
Reference in New Issue
Block a user