Package 

Class ViewKt

  • All Implemented Interfaces:

    
    public final class ViewKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit fadeIn(View $self, Long duration, Function0<Unit> complete)
      final static Unit fadeOut(View $self, Long duration, Integer visibility, Function0<Unit> complete)
      final static Unit applyBottomDivider(View $self, ThemeProvider themeProvider) Apply theme / visibility for Bottom / Menu divider
      final static Unit applyDivider(View $self, ThemeProvider themeProvider, Boolean visible) Apply theme / visibility for View divider
      final static Unit applyPadding(View $self, @DimenRes() Integer start, @DimenRes() Integer top, @DimenRes() Integer end, @DimenRes() Integer bottom) Apply padding programmatically This function is used for CTV buttons: from flutter app, the padding is only working if set programmatically or globally
      final static Unit disable(View $self) Disable and fade view
      final static Unit enable(View $self) Enable and revert view alpha
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • applyDivider

         final static Unit applyDivider(View $self, ThemeProvider themeProvider, Boolean visible)

        Apply theme / visibility for View divider

        Parameters:
        themeProvider - as ThemeProvider for setting separator background color
        visible - true if separator should be visible (true by default)
      • applyPadding

         final static Unit applyPadding(View $self, @DimenRes() Integer start, @DimenRes() Integer top, @DimenRes() Integer end, @DimenRes() Integer bottom)

        Apply padding programmatically This function is used for CTV buttons: from flutter app, the padding is only working if set programmatically or globally

        Parameters:
        start - the start padding value as Int (0 by default)
        top - the top padding value as Int (0 by default)
        end - the end padding value as Int (0 by default)
        bottom - the bottom padding value as Int (0 by default)
      • disable

         final static Unit disable(View $self)

        Disable and fade view

      • enable

         final static Unit enable(View $self)

        Enable and revert view alpha