forked from Blendman974/faceclaw
12 lines
425 B
TypeScript
12 lines
425 B
TypeScript
/** 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;
|