Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion VK.Unity/Web/WebVKClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,17 @@ public static void CallbackHandler(string stringifiedResponse)

private class JSBridge : MonoBehaviour
{
#if UNITY_WEBGL // For compile at IL2CPP on Android

[DllImport("__Internal")]
public static extern void Handler(string method, string param, Action<string> callbackAction);

[DllImport("__Internal")]
public static extern void Handler(string method, string param);
#else
public static void Handler(string method, string param, Action<string> callbackAction) { }
public static void Handler(string method, string param) { }
#endif
}
}
}
}