示例#1
0
 private static IntPtr Create (bool color, bool landscape) {
     switch (Application.platform) {
         case RuntimePlatform.Android:
         case RuntimePlatform.IPhonePlayer:
             NatShare.CreatePrintPayload(color, landscape, out var payload);
             return payload;
         default:
             Debug.LogWarning($"NatShare: PrintPayload is not supported on {Application.platform}");
             return IntPtr.Zero;
     }
 }