-
public final class ExtKt
-
-
Method Summary
Modifier and Type Method Description final static Floatsp(Float $self, Context context)将ps值转换为px值 final static Integerdp(Integer $self, Context context)final static <T extends Any> Deferred<T>ioAsync(CoroutineScope $self, CoroutineStart start, SuspendFunction1<CoroutineScope, T> block)final static <T extends Any> <ERROR CLASS>then(Deferred<T> $self, Function1<T, Unit> block)final static IntegergetDensityHeight(Context $self)final static IntegergetDensityWidth(Context $self)final static Floatdip(Context $self)final static LonggetVersionCode(Context $self)final static StringgetVersionName(Context $self)final static UnitshowLongToast(Context $self, String text)final static UnitshowShortToast(Context $self, String text)-
-
Method Detail
-
ioAsync
final static <T extends Any> Deferred<T> ioAsync(CoroutineScope $self, CoroutineStart start, SuspendFunction1<CoroutineScope, T> block)
-
getDensityHeight
final static Integer getDensityHeight(Context $self)
-
getDensityWidth
final static Integer getDensityWidth(Context $self)
-
getVersionCode
final static Long getVersionCode(Context $self)
-
getVersionName
final static String getVersionName(Context $self)
-
showLongToast
final static Unit showLongToast(Context $self, String text)
-
showShortToast
final static Unit showShortToast(Context $self, String text)
-
-
-
-