diff --git a/java/com/facebook/yoga/YogaMeasureFunction.java b/java/com/facebook/yoga/YogaMeasureFunction.java deleted file mode 100644 index 21da35fe..00000000 --- a/java/com/facebook/yoga/YogaMeasureFunction.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * 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.yoga; - -public interface YogaMeasureFunction { - /** - * Return a value created by YogaMeasureOutput.make(width, height); - */ - long measure( - YogaNode node, - float width, - YogaMeasureMode widthMode, - float height, - YogaMeasureMode heightMode); -} diff --git a/java/com/facebook/yoga/YogaMeasureFunction.kt b/java/com/facebook/yoga/YogaMeasureFunction.kt new file mode 100644 index 00000000..10b5cfc0 --- /dev/null +++ b/java/com/facebook/yoga/YogaMeasureFunction.kt @@ -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.yoga + +public fun interface YogaMeasureFunction { + /** Return a value created by YogaMeasureOutput.make(width, height); */ + public fun measure( + node: YogaNode, + width: Float, + widthMode: YogaMeasureMode, + height: Float, + heightMode: YogaMeasureMode + ): Long +}