摘要:
` import android.util.Log import androidx.annotation.IntRange val StackTraceTag = "stackTraceIndexed" fun whereUsed(@IntRange(from = 1, to = 10) maxTr 阅读全文
posted @ 2024-08-06 14:04
烟花易冷心易碎
阅读(16)
评论(0)
推荐(0)
摘要:
需求:获取当前方法名 为了获取当前方法名已知的有1.堆栈获取2.通过classs 的enclosingMethod.name 比较准确的是enclosingMethod,但是为了获取这个还需要一个内部类,于是用到了Runable,但是run方法没有返回值 于是出现了神奇问题 1.照Runnable 阅读全文
posted @ 2024-08-06 11:29
烟花易冷心易碎
阅读(83)
评论(0)
推荐(0)

浙公网安备 33010602011771号