Kotlinify MemoryPressure* (#43961)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/43961

## Changelog:
[Internal] -

As in the title.

Reviewed By: cortinico

Differential Revision: D55866117

fbshipit-source-id: 2561f6bfe3fc58ae10d57f9fb59c908dd20b9b86
This commit is contained in:
Ruslan Shestopalyuk
2024-04-08 08:32:10 -07:00
committed by Facebook GitHub Bot
parent c14425567a
commit 8c3f8b6f2d
2 changed files with 4 additions and 5 deletions
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge;
package com.facebook.react.bridge
public enum MemoryPressure {
public enum class MemoryPressure {
UI_HIDDEN,
MODERATE,
CRITICAL
@@ -5,11 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge;
package com.facebook.react.bridge
/** Listener interface for memory pressure events. */
public interface MemoryPressureListener {
/** Called when the system generates a memory warning. */
void handleMemoryPressure(int level);
public fun handleMemoryPressure(level: Int)
}