Skip to content

Commit

Permalink
Convert VisibilityBoundsTransformer to Kotlin
Browse files Browse the repository at this point in the history
Summary: Convert VisibilityBoundsTransformer to Kotlin

Reviewed By: kingsleyadio

Differential Revision: D58587794

fbshipit-source-id: fe18c43aa3fe99cc3463cba9072c8eb7d57c4dbb
  • Loading branch information
jettbow authored and facebook-github-bot committed Jun 14, 2024
1 parent 7d672f9 commit 7001ed8
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,17 @@
* limitations under the License.
*/

package com.facebook.rendercore.visibility;
package com.facebook.rendercore.visibility

import android.graphics.Rect;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import android.graphics.Rect
import android.view.View
import android.view.ViewGroup

public interface VisibilityBoundsTransformer {
interface VisibilityBoundsTransformer {

@Nullable
Rect getTransformedLocalVisibleRect(ViewGroup host);
fun getTransformedLocalVisibleRect(host: ViewGroup): Rect?

Rect getViewportRect(View view);
fun getViewportRect(view: View): Rect

boolean shouldUseTransformedVisibleRect(VisibilityOutput visibilityOutput);
fun shouldUseTransformedVisibleRect(visibilityOutput: VisibilityOutput): Boolean
}

0 comments on commit 7001ed8

Please sign in to comment.