-
public final class ViewExtKt
-
-
Field Summary
Fields Modifier and Type Field Description private static DrawabledrawableStartprivate static DrawabledrawableTopprivate static DrawabledrawableEndprivate static DrawabledrawableBottomprivate static DrawabledrawableLeftprivate static DrawabledrawableRight
-
Method Summary
Modifier and Type Method Description DrawablegetDrawableStart()voidsetDrawableStart(Drawable drawableStart)DrawablegetDrawableTop()voidsetDrawableTop(Drawable drawableTop)DrawablegetDrawableEnd()voidsetDrawableEnd(Drawable drawableEnd)DrawablegetDrawableBottom()voidsetDrawableBottom(Drawable drawableBottom)DrawablegetDrawableLeft()voidsetDrawableLeft(@Deprecated(message = Consider replace with drawableStart to better support right-to-left Layout, replaceWith = @ReplaceWith(imports = {}, expression = drawableStart)) Drawable drawableLeft)DrawablegetDrawableRight()voidsetDrawableRight(@Deprecated(message = Consider replace with drawableEnd to better support right-to-left Layout, replaceWith = @ReplaceWith(imports = {}, expression = drawableEnd)) Drawable drawableRight)final static UnitsetOnSingleClickListener(View $self, View.OnClickListener l)final static UnitsetOnSingleClickListener(View $self, Function1<View, Unit> l)final static UnitsetOnSingleClickListener(View $self, Long waitDelay, View.OnClickListener l)final static UnitsetOnSingleClickListener(View $self, Long waitDelay, Function1<View, Unit> l)final static NumberorZeroIfNullOrNaN(Number $self)final static Unitgone(View $self)final static Unitshow(View $self)final static Viewinflate(ViewStub $self)final static Unithide(View $self)final static UnitstartBounceAnimationUpwards(View $self, Integer offset, Long animationDuration, Interpolator interpolator)final static UnitinitAnimState(View $self, Boolean alphaOnly, Boolean littleLessTranslate, Boolean isUpwardsAnimation)final static UnitsetDrawables(TextView $self, Drawable start, Drawable top, Drawable end, Drawable bottom)final static UnithideKeyboard(Fragment $self)final static UnithideKeyboard(Activity $self)final static UnithideKeyboard(Context $self, View view)final static Unithorizontalscroll(TextView $self)final static Drawabledrawabless(Context $self, @DrawableRes() Integer id)final static UnitvibrateStrong(View $self)final static UrisaveCaptureToLocalCache(Bitmap $self, Context context)final static UnitopenShareIntent(Activity $self, Uri uri)final static BooleanisValid(HMSVideoTrack $self)final static UnitshowTileListDialog(Context $self, Boolean isLocalTrack, Function0<Unit> onScreenCapture, Function0<Unit> onSimulcast, Function0<Unit> onMirror)final static UnitonBitMap(SurfaceViewRenderer $self, Function1<Bitmap, Unit> onBitmap, Float scale)final static UnitshowSimulcastDialog(Context $self, HMSRemoteVideoTrack hmsVideoTrack)final static UnitshowMirrorOptions(Context $self, SurfaceViewRenderer surfaceViewRenderer)final static UnitsetInit(SurfaceViewRenderer $self)final static UnitsetRelease(SurfaceViewRenderer $self)final static BooleanisInit(SurfaceViewRenderer $self)final static UnitsetGradient(View $self, Integer startColor, Integer endColor, GradientDrawable.Orientation orientation)final static UnitsetCameraGestureListener(HMSVideoView $self, HMSVideoTrack track, Function1<Uri, Unit> onImageCapture, Function0<Unit> onLongPress)-
-
Method Detail
-
getDrawableStart
Drawable getDrawableStart()
-
setDrawableStart
void setDrawableStart(Drawable drawableStart)
-
getDrawableTop
Drawable getDrawableTop()
-
setDrawableTop
void setDrawableTop(Drawable drawableTop)
-
getDrawableEnd
Drawable getDrawableEnd()
-
setDrawableEnd
void setDrawableEnd(Drawable drawableEnd)
-
getDrawableBottom
Drawable getDrawableBottom()
-
setDrawableBottom
void setDrawableBottom(Drawable drawableBottom)
-
getDrawableLeft
Drawable getDrawableLeft()
-
setDrawableLeft
void setDrawableLeft(@Deprecated(message = Consider replace with drawableStart to better support right-to-left Layout, replaceWith = @ReplaceWith(imports = {}, expression = drawableStart)) Drawable drawableLeft)
-
getDrawableRight
Drawable getDrawableRight()
-
setDrawableRight
void setDrawableRight(@Deprecated(message = Consider replace with drawableEnd to better support right-to-left Layout, replaceWith = @ReplaceWith(imports = {}, expression = drawableEnd)) Drawable drawableRight)
-
setOnSingleClickListener
final static Unit setOnSingleClickListener(View $self, View.OnClickListener l)
-
setOnSingleClickListener
final static Unit setOnSingleClickListener(View $self, Function1<View, Unit> l)
-
setOnSingleClickListener
final static Unit setOnSingleClickListener(View $self, Long waitDelay, View.OnClickListener l)
-
setOnSingleClickListener
final static Unit setOnSingleClickListener(View $self, Long waitDelay, Function1<View, Unit> l)
-
orZeroIfNullOrNaN
final static Number orZeroIfNullOrNaN(Number $self)
-
startBounceAnimationUpwards
final static Unit startBounceAnimationUpwards(View $self, Integer offset, Long animationDuration, Interpolator interpolator)
-
initAnimState
final static Unit initAnimState(View $self, Boolean alphaOnly, Boolean littleLessTranslate, Boolean isUpwardsAnimation)
-
setDrawables
final static Unit setDrawables(TextView $self, Drawable start, Drawable top, Drawable end, Drawable bottom)
-
hideKeyboard
final static Unit hideKeyboard(Fragment $self)
-
hideKeyboard
final static Unit hideKeyboard(Activity $self)
-
hideKeyboard
final static Unit hideKeyboard(Context $self, View view)
-
horizontalscroll
final static Unit horizontalscroll(TextView $self)
-
drawabless
final static Drawable drawabless(Context $self, @DrawableRes() Integer id)
-
vibrateStrong
final static Unit vibrateStrong(View $self)
-
saveCaptureToLocalCache
final static Uri saveCaptureToLocalCache(Bitmap $self, Context context)
-
openShareIntent
final static Unit openShareIntent(Activity $self, Uri uri)
-
showTileListDialog
final static Unit showTileListDialog(Context $self, Boolean isLocalTrack, Function0<Unit> onScreenCapture, Function0<Unit> onSimulcast, Function0<Unit> onMirror)
-
onBitMap
final static Unit onBitMap(SurfaceViewRenderer $self, Function1<Bitmap, Unit> onBitmap, Float scale)
-
showSimulcastDialog
final static Unit showSimulcastDialog(Context $self, HMSRemoteVideoTrack hmsVideoTrack)
-
showMirrorOptions
final static Unit showMirrorOptions(Context $self, SurfaceViewRenderer surfaceViewRenderer)
-
setRelease
final static Unit setRelease(SurfaceViewRenderer $self)
-
setGradient
final static Unit setGradient(View $self, Integer startColor, Integer endColor, GradientDrawable.Orientation orientation)
-
setCameraGestureListener
final static Unit setCameraGestureListener(HMSVideoView $self, HMSVideoTrack track, Function1<Uri, Unit> onImageCapture, Function0<Unit> onLongPress)
-
-
-
-