# AccessibilityViewCommand.MoveAtGranularityArguments

# AccessibilityViewCommand.MoveAtGranularityArguments

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/view/accessibility/AccessibilityViewCommand.java+class:androidx.core.view.accessibility.AccessibilityViewCommand.MoveAtGranularityArguments)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityViewCommand.MoveAtGranularityArguments "View this page in Java")

<br />

```
class AccessibilityViewCommand.MoveAtGranularityArguments : AccessibilityViewCommand.CommandArguments
```

<br />

|---|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                                                                                                |||
| ↳ | [androidx.core.view.accessibility.AccessibilityViewCommand.CommandArguments](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand.CommandArguments)                        ||
|   | ↳ | [androidx.core.view.accessibility.AccessibilityViewCommand.MoveAtGranularityArguments](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand.MoveAtGranularityArguments) |

*** ** * ** ***

Arguments for[#ACTION_NEXT_AT_MOVEMENT_GRANULARITY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat)and[#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat)

## Summary

|                                                                                      ### Public constructors                                                                                       |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MoveAtGranularityArguments](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand.MoveAtGranularityArguments#MoveAtGranularityArguments())`()` |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [getExtendSelection](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand.MoveAtGranularityArguments#getExtendSelection())`()` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [getGranularity](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand.MoveAtGranularityArguments#getGranularity())`()`         |

## Public constructors

### MoveAtGranularityArguments

Added in 1.1.0  

```
MoveAtGranularityArguments()
```  

## Public functions

### getExtendSelection

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getExtendSelection(): Boolean
```  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether when moving at granularity to extend the selection or to move it. |

### getGranularity

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getGranularity(): Int
```  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|----------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Movement granularity to be used when traversing the node text. |

|                                                                                    See also                                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|
| [MOVEMENT_GRANULARITY_CHARACTER](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_CHARACTER()) | AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_CHARACTER |
| [MOVEMENT_GRANULARITY_WORD](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_WORD())           | AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_WORD      |
| [MOVEMENT_GRANULARITY_LINE](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_LINE())           | AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_LINE      |
| [MOVEMENT_GRANULARITY_PARAGRAPH](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_PARAGRAPH()) | AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_PARAGRAPH |
| [MOVEMENT_GRANULARITY_PAGE](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_PAGE())           | AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_PAGE      |