mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
c14425567a
commit
8c3f8b6f2d
+2
-2
@@ -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
|
||||
+2
-3
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user