|
1 | 1 | // Copyright 2013 The Flutter Authors. All rights reserved.
|
2 | 2 | // Use of this source code is governed by a BSD-style license that can be
|
3 | 3 | // found in the LICENSE file.
|
4 |
| - |
5 | 4 | // Autogenerated from Pigeon (v16.0.4), do not edit directly.
|
6 | 5 | // See also: https://pub.dev/packages/pigeon
|
7 | 6 |
|
@@ -752,4 +751,147 @@ void SetUpInAppPurchaseAPI(id<FlutterBinaryMessenger> binaryMessenger,
|
752 | 751 | [channel setMessageHandler:nil];
|
753 | 752 | }
|
754 | 753 | }
|
| 754 | + { |
| 755 | + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] |
| 756 | + initWithName: |
| 757 | + @"dev.flutter.pigeon.in_app_purchase_storekit.InAppPurchaseAPI.retrieveReceiptData" |
| 758 | + binaryMessenger:binaryMessenger |
| 759 | + codec:InAppPurchaseAPIGetCodec()]; |
| 760 | + if (api) { |
| 761 | + NSCAssert( |
| 762 | + [api respondsToSelector:@selector(retrieveReceiptDataWithError:)], |
| 763 | + @"InAppPurchaseAPI api (%@) doesn't respond to @selector(retrieveReceiptDataWithError:)", |
| 764 | + api); |
| 765 | + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { |
| 766 | + FlutterError *error; |
| 767 | + NSString *output = [api retrieveReceiptDataWithError:&error]; |
| 768 | + callback(wrapResult(output, error)); |
| 769 | + }]; |
| 770 | + } else { |
| 771 | + [channel setMessageHandler:nil]; |
| 772 | + } |
| 773 | + } |
| 774 | + { |
| 775 | + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] |
| 776 | + initWithName: |
| 777 | + @"dev.flutter.pigeon.in_app_purchase_storekit.InAppPurchaseAPI.refreshReceipt" |
| 778 | + binaryMessenger:binaryMessenger |
| 779 | + codec:InAppPurchaseAPIGetCodec()]; |
| 780 | + if (api) { |
| 781 | + NSCAssert([api respondsToSelector:@selector(refreshReceiptReceiptProperties:completion:)], |
| 782 | + @"InAppPurchaseAPI api (%@) doesn't respond to " |
| 783 | + @"@selector(refreshReceiptReceiptProperties:completion:)", |
| 784 | + api); |
| 785 | + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { |
| 786 | + NSArray *args = message; |
| 787 | + NSDictionary<NSString *, id> *arg_receiptProperties = GetNullableObjectAtIndex(args, 0); |
| 788 | + [api refreshReceiptReceiptProperties:arg_receiptProperties |
| 789 | + completion:^(FlutterError *_Nullable error) { |
| 790 | + callback(wrapResult(nil, error)); |
| 791 | + }]; |
| 792 | + }]; |
| 793 | + } else { |
| 794 | + [channel setMessageHandler:nil]; |
| 795 | + } |
| 796 | + } |
| 797 | + { |
| 798 | + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] |
| 799 | + initWithName:@"dev.flutter.pigeon.in_app_purchase_storekit.InAppPurchaseAPI." |
| 800 | + @"startObservingPaymentQueue" |
| 801 | + binaryMessenger:binaryMessenger |
| 802 | + codec:InAppPurchaseAPIGetCodec()]; |
| 803 | + if (api) { |
| 804 | + NSCAssert([api respondsToSelector:@selector(startObservingPaymentQueueWithError:)], |
| 805 | + @"InAppPurchaseAPI api (%@) doesn't respond to " |
| 806 | + @"@selector(startObservingPaymentQueueWithError:)", |
| 807 | + api); |
| 808 | + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { |
| 809 | + FlutterError *error; |
| 810 | + [api startObservingPaymentQueueWithError:&error]; |
| 811 | + callback(wrapResult(nil, error)); |
| 812 | + }]; |
| 813 | + } else { |
| 814 | + [channel setMessageHandler:nil]; |
| 815 | + } |
| 816 | + } |
| 817 | + { |
| 818 | + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] |
| 819 | + initWithName:@"dev.flutter.pigeon.in_app_purchase_storekit.InAppPurchaseAPI." |
| 820 | + @"stopObservingPaymentQueue" |
| 821 | + binaryMessenger:binaryMessenger |
| 822 | + codec:InAppPurchaseAPIGetCodec()]; |
| 823 | + if (api) { |
| 824 | + NSCAssert([api respondsToSelector:@selector(stopObservingPaymentQueueWithError:)], |
| 825 | + @"InAppPurchaseAPI api (%@) doesn't respond to " |
| 826 | + @"@selector(stopObservingPaymentQueueWithError:)", |
| 827 | + api); |
| 828 | + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { |
| 829 | + FlutterError *error; |
| 830 | + [api stopObservingPaymentQueueWithError:&error]; |
| 831 | + callback(wrapResult(nil, error)); |
| 832 | + }]; |
| 833 | + } else { |
| 834 | + [channel setMessageHandler:nil]; |
| 835 | + } |
| 836 | + } |
| 837 | + { |
| 838 | + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] |
| 839 | + initWithName:@"dev.flutter.pigeon.in_app_purchase_storekit.InAppPurchaseAPI." |
| 840 | + @"registerPaymentQueueDelegate" |
| 841 | + binaryMessenger:binaryMessenger |
| 842 | + codec:InAppPurchaseAPIGetCodec()]; |
| 843 | + if (api) { |
| 844 | + NSCAssert([api respondsToSelector:@selector(registerPaymentQueueDelegateWithError:)], |
| 845 | + @"InAppPurchaseAPI api (%@) doesn't respond to " |
| 846 | + @"@selector(registerPaymentQueueDelegateWithError:)", |
| 847 | + api); |
| 848 | + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { |
| 849 | + FlutterError *error; |
| 850 | + [api registerPaymentQueueDelegateWithError:&error]; |
| 851 | + callback(wrapResult(nil, error)); |
| 852 | + }]; |
| 853 | + } else { |
| 854 | + [channel setMessageHandler:nil]; |
| 855 | + } |
| 856 | + } |
| 857 | + { |
| 858 | + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] |
| 859 | + initWithName:@"dev.flutter.pigeon.in_app_purchase_storekit.InAppPurchaseAPI." |
| 860 | + @"removePaymentQueueDelegate" |
| 861 | + binaryMessenger:binaryMessenger |
| 862 | + codec:InAppPurchaseAPIGetCodec()]; |
| 863 | + if (api) { |
| 864 | + NSCAssert([api respondsToSelector:@selector(removePaymentQueueDelegateWithError:)], |
| 865 | + @"InAppPurchaseAPI api (%@) doesn't respond to " |
| 866 | + @"@selector(removePaymentQueueDelegateWithError:)", |
| 867 | + api); |
| 868 | + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { |
| 869 | + FlutterError *error; |
| 870 | + [api removePaymentQueueDelegateWithError:&error]; |
| 871 | + callback(wrapResult(nil, error)); |
| 872 | + }]; |
| 873 | + } else { |
| 874 | + [channel setMessageHandler:nil]; |
| 875 | + } |
| 876 | + } |
| 877 | + { |
| 878 | + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] |
| 879 | + initWithName:@"dev.flutter.pigeon.in_app_purchase_storekit.InAppPurchaseAPI." |
| 880 | + @"showPriceConsentIfNeeded" |
| 881 | + binaryMessenger:binaryMessenger |
| 882 | + codec:InAppPurchaseAPIGetCodec()]; |
| 883 | + if (api) { |
| 884 | + NSCAssert([api respondsToSelector:@selector(showPriceConsentIfNeededWithError:)], |
| 885 | + @"InAppPurchaseAPI api (%@) doesn't respond to " |
| 886 | + @"@selector(showPriceConsentIfNeededWithError:)", |
| 887 | + api); |
| 888 | + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { |
| 889 | + FlutterError *error; |
| 890 | + [api showPriceConsentIfNeededWithError:&error]; |
| 891 | + callback(wrapResult(nil, error)); |
| 892 | + }]; |
| 893 | + } else { |
| 894 | + [channel setMessageHandler:nil]; |
| 895 | + } |
| 896 | + } |
755 | 897 | }
|
0 commit comments