Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    RemoveSpaceGesture
    class RemoveSpaceGesture : HandwritingGesture, Parcelable
    
    A subclass of HandwritingGesture for removing whitespace from text.
    Summary
    
    
      
        
          | Inherited constants | 
        
          | From class Parcelable
                
                  
                    | Int | CONTENTS_FILE_DESCRIPTOR
                         Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor. |  
                    | Int | PARCELABLE_WRITE_RETURN_VALUE
                         Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point. |  | 
        
          | From class HandwritingGesture
                
                  
                    | Int | GRANULARITY_CHARACTER
                         Operate on text per character basis. i.e. each character is selected based on its intersection with selection rectangle.   Strategy of operating at a granular level is maintained in the UI toolkit. A character/word/line is included if its center is within the gesture rectangle. e.g. if a selection RectFwithGRANULARITY_CHARACTERincludes width-wise center of the character, it should be selected. Similarly, text in a line should be included in the operation if rectangle includes line height center. |  
                    | Int | GRANULARITY_WORD
                         Operate text per word basis. e.g. if selection includes width-wise center of the word, whole word is selected.   Strategy of operating at a granular level is maintained in the UI toolkit. A character/word/line is included if its center is within the gesture rectangle. e.g. if a selection Refer to https://www.unicode.org/reports/tr29/#Word_Boundaries for more detail on how word breaks are decided.RectFwithGRANULARITY_WORDincludes width-wise center of the word, it should be selected. Similarly, text in a line should be included in the operation if rectangle includes line height center. |  | 
      
    
    
    
      
        
          | Inherited functions | 
        
          | From class HandwritingGesture
                
                  
                    | String? | getFallbackText()
                         The fallback text that will be committed at current cursor position if there is no applicable text beneath the area of gesture. For example, select can fail if gesture is drawn over area that has no text beneath. example 2: join can fail if the gesture is drawn over text but there is no whitespace. |  | 
      
    
    
    Public methods
    
      describeContents
      
      fun describeContents(): Int
      
     
    
      equals
      
      fun equals(other: Any?): Boolean
      
        
          
            | Parameters | 
          
            | obj | the reference object with which to compare. | 
        
      
      
        
          
            | Return | 
          
            | Boolean | trueif this object is the same as the obj argument;falseotherwise. | 
        
      
     
    
      getEndPoint
      
      fun getEndPoint(): PointF
      Returns the end point in screen coordinates set with Builder.setPoints.
      
        
          
            | Return | 
          
            | PointF | This value cannot be null. | 
        
      
     
    
      getStartPoint
      
      fun getStartPoint(): PointF
      Returns the start point in screen coordinates set with Builder.setPoints.
      
        
          
            | Return | 
          
            | PointF | This value cannot be null. | 
        
      
     
    
      hashCode
      
      fun hashCode(): Int
      
        
          
            | Return | 
          
            | Int | a hash code value for this object. | 
        
      
     
    
      writeToParcel
      
      fun writeToParcel(
    dest: Parcel, 
    flags: Int
): Unit
      Used to package this object into a Parcel.
      
        
          
            | Parameters | 
          
            | dest | Parcel: Parcelto be written This value cannot benull. | 
          
            | flags | Int: flags used for parceling | 
        
      
     
    Properties
    
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]