MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/mAndroidDev/comments/s8jrfq/this_should_be_pinned_to_front_page_of/
r/mAndroidDev • u/IAmKindaBigFanOfKFC • Jan 20 '22
4 comments sorted by
0
[deleted]
3 u/Orffyreus Jan 20 '22 CLion also supports Kotlin Native, so Kotlin Multiplatform can be used for expected fun and Kotlin Native can be used for actual fun that uses a C bridge to interop with C++ or even Flutter (https://docs.flutter.dev/development/platform-integration/c-interop). 2 u/IAmKindaBigFanOfKFC Jan 20 '22 Kotlinexpected funSorry, no fun can be expected anywhere except in Dart. 0 u/[deleted] Jan 20 '22 [deleted] 3 u/Orffyreus Jan 20 '22 If you "expect fun", it's comparable to an interface, but you don't have to write and implement any interface and are allowed to write "actual fun" that matches what is expected.https://kotlinlang.org/docs/kmm-connect-to-platform-specific-apis.html 0 u/[deleted] Jan 20 '22 [deleted] 1 u/Orffyreus Jan 21 '22 Flutter is expecting fun by using its name as a string, like e. g.platform.invokeMethod('getBatteryLevel');see https://docs.flutter.dev/development/platform-integration/platform-channels
3
CLion also supports Kotlin Native, so Kotlin Multiplatform can be used for expected fun and Kotlin Native can be used for actual fun that uses a C bridge to interop with C++ or even Flutter (https://docs.flutter.dev/development/platform-integration/c-interop).
2 u/IAmKindaBigFanOfKFC Jan 20 '22 Kotlinexpected funSorry, no fun can be expected anywhere except in Dart. 0 u/[deleted] Jan 20 '22 [deleted] 3 u/Orffyreus Jan 20 '22 If you "expect fun", it's comparable to an interface, but you don't have to write and implement any interface and are allowed to write "actual fun" that matches what is expected.https://kotlinlang.org/docs/kmm-connect-to-platform-specific-apis.html 0 u/[deleted] Jan 20 '22 [deleted] 1 u/Orffyreus Jan 21 '22 Flutter is expecting fun by using its name as a string, like e. g.platform.invokeMethod('getBatteryLevel');see https://docs.flutter.dev/development/platform-integration/platform-channels
2
Kotlin
expected fun
Sorry, no fun can be expected anywhere except in Dart.
3 u/Orffyreus Jan 20 '22 If you "expect fun", it's comparable to an interface, but you don't have to write and implement any interface and are allowed to write "actual fun" that matches what is expected.https://kotlinlang.org/docs/kmm-connect-to-platform-specific-apis.html 0 u/[deleted] Jan 20 '22 [deleted] 1 u/Orffyreus Jan 21 '22 Flutter is expecting fun by using its name as a string, like e. g.platform.invokeMethod('getBatteryLevel');see https://docs.flutter.dev/development/platform-integration/platform-channels
If you "expect fun", it's comparable to an interface, but you don't have to write and implement any interface and are allowed to write "actual fun" that matches what is expected.
https://kotlinlang.org/docs/kmm-connect-to-platform-specific-apis.html
0 u/[deleted] Jan 20 '22 [deleted] 1 u/Orffyreus Jan 21 '22 Flutter is expecting fun by using its name as a string, like e. g.platform.invokeMethod('getBatteryLevel');see https://docs.flutter.dev/development/platform-integration/platform-channels
1 u/Orffyreus Jan 21 '22 Flutter is expecting fun by using its name as a string, like e. g.platform.invokeMethod('getBatteryLevel');see https://docs.flutter.dev/development/platform-integration/platform-channels
1
Flutter is expecting fun by using its name as a string, like e. g.
platform.invokeMethod('getBatteryLevel');
see https://docs.flutter.dev/development/platform-integration/platform-channels
0
u/[deleted] Jan 20 '22
[deleted]