-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare shared interface for accessibility delegate methods (#48543)
Summary: Pull Request resolved: #48543 Introduces a shared interface for methods that need to be called by the `ReactScrollViewAccessibilityDelegate` Changelog: [Internal] Reviewed By: alanleedev Differential Revision: D67948151 fbshipit-source-id: 9bafaa0b5f9ad5ba2fd73b7b1929d784fa4951c9
- Loading branch information
1 parent
b1938e9
commit 8a12672
Showing
5 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...e/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactAccessibleScrollView.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.react.views.scroll | ||
|
||
import android.view.View | ||
|
||
/** Shared interface for the [ReactScrollViewAccessibilityDelegate] */ | ||
internal interface ReactAccessibleScrollView { | ||
|
||
val scrollEnabled: Boolean | ||
|
||
/** Returns whether the given descendent is partially scrolled in view */ | ||
fun isPartiallyScrolledInView(view: View): Boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters