Skip to content

Commit 6996395

Browse files
Fabio Carballofacebook-github-bot
Fabio Carballo
authored andcommitted
Convert EventDispatchInfo to Kotlin
Summary: As per title Reviewed By: zielinskimz Differential Revision: D43900006 fbshipit-source-id: a9c348b623313f2076d2ba1312c43484ec2d6090
1 parent de4fa2b commit 6996395

File tree

2 files changed

+30
-40
lines changed

2 files changed

+30
-40
lines changed

litho-core/src/main/java/com/facebook/litho/EventDispatchInfo.java

-40
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.facebook.litho
18+
19+
import kotlin.jvm.JvmField
20+
21+
/**
22+
* Holds onto the mutable data used to dispatch an event. This data is kept up-to-date with the
23+
* latest version of the owning component or section by [EventHandlersController].
24+
*/
25+
class EventDispatchInfo(
26+
// These should only be null for manually created EventHandlers (i.e. not using
27+
// Component.newEventHandler
28+
@JvmField var hasEventDispatcher: HasEventDispatcher?,
29+
@JvmField var componentContext: ComponentContext?
30+
)

0 commit comments

Comments
 (0)