DiamondIosNative.cs 583 B

12345678910111213141516171819
  1. using System.Runtime.InteropServices;
  2. namespace DiamondArrow.Platform
  3. {
  4. // IL2CPP generates the native string marshaling code in the Launch host.
  5. public static class DiamondIosNative
  6. {
  7. #if UNITY_IOS && !UNITY_EDITOR
  8. [DllImport("__Internal")]
  9. public static extern void DiamondInitialize(string receiver, int testAds);
  10. [DllImport("__Internal")]
  11. public static extern void DiamondShowReward(string receiver, string request);
  12. [DllImport("__Internal")]
  13. public static extern void DiamondDetach(string receiver);
  14. #endif
  15. }
  16. }