forked from Blendman974/faceclaw
Kotlin on iOS
This commit is contained in:
1 parent
63b2a7d545
commit
bc8e80c533
12 files changed
+149
-57
No files matched your search
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
/** Exported native API normalized across Java interfaces and Obj-C protocols. */
|
||||
export interface KotlinBridge {
|
||||
platform(): string;
|
||||
threadName(): string;
|
||||
isMainThread(): boolean;
|
||||
greet(name: string): string;
|
||||
/** Synchronous callback; must not throw across the native boundary. */
|
||||
roundTrip(message: string, transform: (message: string) => string): string;
|
||||
}
|
||||
|
||||
export function createKotlinBridge(): KotlinBridge;
|
||||
Reference in new issue
Block a user