Class ViewKt

  • All Implemented Interfaces:

    
    public final class ViewKt
    
                        
    • Constructor Detail

    • Method Detail

      • applyAccessibility

         final static Unit applyAccessibility(View $self, Accessibility accessibility)

        Make a view accessible by applying accessibility descriptions.

        Parameters:
        accessibility - instance of Accessibility
      • updateState

         final static Unit updateState(View $self, Accessibility accessibility)

        Update accessibility state and trigger the announcement

        Parameters:
        accessibility - the accessibility object with updated information.
      • applyAccessibilityCustom

         final static Unit applyAccessibilityCustom(View $self, String label, String actionDescription, String stateDescription, Boolean announceState, String announceStateLabel, Integer actionId, Integer collectionItemPosition, AccessibilityClassName customClassName)

        Customize accessibility params for View

        Parameters:
        label - for custom label as String
        actionDescription - for custom action description as String
        stateDescription - for custom state description as String
        announceState - whether the component should announce its state
        announceStateLabel - if set, will override accessibility label when announcing state change
        actionId - for custom action id as Int
        collectionItemPosition - position of item in the list
        customClassName - custom accessibility class name
      • removeAccessibilityAction

         final static Unit removeAccessibilityAction(View $self)

        Remove any action description for Accessibility. Note: Will replace any behavior set with View.applyAccessibility or View.applyAccessibilityCustom