[StoreKit] Update framework to Xcode 12 beta 4. (#9387)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
This commit is contained in:
Родитель
2f7770e0b4
Коммит
5ba2042409
|
@ -1,3 +1,4 @@
|
|||
using Foundation;
|
||||
using ObjCRuntime;
|
||||
using System;
|
||||
|
||||
|
@ -54,7 +55,7 @@ namespace StoreKit {
|
|||
}
|
||||
|
||||
#if !MONOMAC || !XAMCORE_4_0
|
||||
[NoWatch]
|
||||
[Watch (7,0)]
|
||||
[iOS (9,3)]
|
||||
[Native]
|
||||
public enum SKCloudServiceAuthorizationStatus : long {
|
||||
|
@ -64,7 +65,7 @@ namespace StoreKit {
|
|||
Authorized
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
[Watch (7,0)]
|
||||
[iOS (9,3)]
|
||||
[Native]
|
||||
public enum SKCloudServiceCapability : ulong {
|
||||
|
@ -74,8 +75,11 @@ namespace StoreKit {
|
|||
MusicCatalogSubscriptionEligible = 1 << 1,
|
||||
AddToCloudMusicLibrary = 1 << 8
|
||||
}
|
||||
#endif
|
||||
|
||||
[iOS (11,0)][TV (11,0)][NoMac][NoWatch]
|
||||
#if !XAMCORE_4_0
|
||||
|
||||
[iOS (11,0)][TV (11,0)][Mac (11,0)][NoWatch]
|
||||
[Native]
|
||||
public enum SKProductStorePromotionVisibility : long {
|
||||
Default,
|
||||
|
@ -99,4 +103,12 @@ namespace StoreKit {
|
|||
PayUpFront,
|
||||
FreeTrial,
|
||||
}
|
||||
|
||||
[Unavailable (PlatformName.MacCatalyst)]
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[Native, Advice ("This API is not available when using UIKit on macOS.")]
|
||||
public enum SKOverlayPosition : long {
|
||||
SKOverlayPositionBottom = 0,
|
||||
Raised = 1,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#if __IOS__
|
||||
using System;
|
||||
|
||||
using Foundation;
|
||||
using CoreFoundation;
|
||||
using ObjCRuntime;
|
||||
|
||||
namespace StoreKit {
|
||||
|
||||
#if !COREBUILD
|
||||
public partial class SKOverlayAppClipConfiguration
|
||||
{
|
||||
public NSObject this[string i] {
|
||||
get => GetAdditionalValue (i);
|
||||
set => SetAdditionalValue (value, i);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,20 @@
|
|||
#if __IOS__
|
||||
using System;
|
||||
|
||||
using Foundation;
|
||||
using CoreFoundation;
|
||||
using ObjCRuntime;
|
||||
|
||||
namespace StoreKit {
|
||||
|
||||
#if !COREBUILD
|
||||
public partial class SKOverlayAppConfiguration
|
||||
{
|
||||
public NSObject this[string i] {
|
||||
get => GetAdditionalValue (i);
|
||||
set => SetAdditionalValue (value, i);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
|
@ -25,7 +25,7 @@
|
|||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MONOMAC && !WATCH
|
||||
#if !WATCH
|
||||
|
||||
using System;
|
||||
|
||||
|
|
|
@ -1491,6 +1491,8 @@ STOREKIT_API_SOURCES = \
|
|||
StoreKit/Enums.cs \
|
||||
|
||||
STOREKIT_CORE_SOURCES = \
|
||||
StoreKit/SKOverlayAppClipConfiguration.cs \
|
||||
StoreKit/SKOverlayAppConfiguration.cs \
|
||||
StoreKit/SKReceiptProperty.cs \
|
||||
StoreKit/StoreProductParameters.cs \
|
||||
|
||||
|
|
387
src/storekit.cs
387
src/storekit.cs
|
@ -12,8 +12,13 @@
|
|||
using ObjCRuntime;
|
||||
using Foundation;
|
||||
using CoreFoundation;
|
||||
using CoreGraphics;
|
||||
using StoreKit;
|
||||
#if !MONOMAC
|
||||
#if MONOMAC
|
||||
using AppKit;
|
||||
using UIViewController = AppKit.NSViewController;
|
||||
using UIWindowScene = Foundation.NSObject;
|
||||
#else
|
||||
using UIKit;
|
||||
#endif
|
||||
#if WATCH
|
||||
|
@ -245,6 +250,14 @@ namespace StoreKit {
|
|||
[NoWatch, NoTV, NoMac, iOS (13,4)]
|
||||
[Export ("showPriceConsentIfNeeded")]
|
||||
void ShowPriceConsentIfNeeded ();
|
||||
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[Export ("presentCodeRedemptionSheet")]
|
||||
void PresentCodeRedemptionSheet ();
|
||||
|
||||
[Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)]
|
||||
[Export ("transactionObservers")]
|
||||
ISKPaymentTransactionObserver[] TransactionObservers { get; }
|
||||
}
|
||||
|
||||
[Watch (6, 2)]
|
||||
|
@ -327,8 +340,14 @@ namespace StoreKit {
|
|||
[Mac (10,14,4)]
|
||||
[Export ("discounts")]
|
||||
SKProductDiscount [] Discounts { get; }
|
||||
|
||||
[Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)]
|
||||
[Export ("isFamilyShareable")]
|
||||
bool IsFamilyShareable { get; }
|
||||
}
|
||||
|
||||
interface ISKPaymentTransactionObserver {}
|
||||
|
||||
[Watch (6, 2)]
|
||||
[BaseType (typeof (NSObject))]
|
||||
[Model]
|
||||
|
@ -350,7 +369,7 @@ namespace StoreKit {
|
|||
[Export ("paymentQueue:updatedDownloads:")]
|
||||
void UpdatedDownloads (SKPaymentQueue queue, SKDownload [] downloads);
|
||||
|
||||
[iOS (11,0)][TV (11,0)][NoMac][NoWatch]
|
||||
[iOS (11,0)][TV (11,0)][Mac (11,0)][NoWatch]
|
||||
[Export ("paymentQueue:shouldAddStorePayment:forProduct:")]
|
||||
bool ShouldAddStorePayment (SKPaymentQueue queue, SKPayment payment, SKProduct product);
|
||||
|
||||
|
@ -359,6 +378,10 @@ namespace StoreKit {
|
|||
[TV (13,0)]
|
||||
[Export ("paymentQueueDidChangeStorefront:")]
|
||||
void DidChangeStorefront (SKPaymentQueue queue);
|
||||
|
||||
[Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)]
|
||||
[Export ("paymentQueue:didRevokeEntitlementsForProductIdentifiers:")]
|
||||
void DidRevokeEntitlements (SKPaymentQueue queue, string[] productIdentifiers);
|
||||
}
|
||||
|
||||
[Watch (6, 2)]
|
||||
|
@ -495,9 +518,7 @@ namespace StoreKit {
|
|||
void ReceivedResponse (SKProductsRequest request, SKProductsResponse response);
|
||||
}
|
||||
|
||||
#if !MONOMAC
|
||||
[NoTV]
|
||||
[NoWatch]
|
||||
[Mac (11, 0), NoTV, NoWatch]
|
||||
[BaseType (typeof (UIViewController),
|
||||
Delegates=new string [] { "WeakDelegate" },
|
||||
Events =new Type [] { typeof (SKStoreProductViewControllerDelegate) })]
|
||||
|
@ -525,34 +546,59 @@ namespace StoreKit {
|
|||
void LoadProduct (StoreProductParameters parameters, [NullAllowed] Action<bool,NSError> callback);
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
[NoMac]
|
||||
[StrongDictionary ("SKStoreProductParameterKey")]
|
||||
interface StoreProductParameters {
|
||||
|
||||
[iOS (11,3), TV (11,3)]
|
||||
[Export ("AdNetworkAttributionSignature")]
|
||||
string AdNetworkAttributionSignature { get; set; }
|
||||
|
||||
[iOS (11,3), TV (11,3)]
|
||||
[Export ("AdNetworkCampaignIdentifier")]
|
||||
uint AdNetworkCampaignIdentifier { get; set; }
|
||||
|
||||
[iOS (11,3), TV (11,3)]
|
||||
[Export ("AdNetworkIdentifier")]
|
||||
string AdNetworkIdentifier { get; set; }
|
||||
|
||||
[iOS (11,3), TV (11,3)]
|
||||
[Export ("AdNetworkNonce")]
|
||||
NSUuid AdNetworkNonce { get; set; }
|
||||
|
||||
[iOS (11,3), TV (11,3)]
|
||||
[Export ("AdNetworkTimestamp")]
|
||||
uint AdNetworkTimestamp { get; set; }
|
||||
[Mac (11,0), NoTV, NoWatch]
|
||||
[BaseType (typeof (NSObject))]
|
||||
[Model]
|
||||
[Protocol]
|
||||
interface SKStoreProductViewControllerDelegate {
|
||||
[Export ("productViewControllerDidFinish:"), EventArgs ("SKStoreProductViewController")]
|
||||
void Finished (SKStoreProductViewController controller);
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
[NoMac]
|
||||
[Mac (11,0)]
|
||||
[StrongDictionary ("SKStoreProductParameterKey")]
|
||||
interface StoreProductParameters {
|
||||
|
||||
[iOS (11,0)][TV (11,0)]
|
||||
[Export ("ProductIdentifier")]
|
||||
string ProductIdentifier { get; }
|
||||
|
||||
[iOS (8,3)]
|
||||
[Export ("ProviderToken")]
|
||||
string ProviderToken { get; }
|
||||
|
||||
[iOS (11,3), TV (11,3), NoMac]
|
||||
[Export ("AdNetworkAttributionSignature")]
|
||||
string AdNetworkAttributionSignature { get; set; }
|
||||
|
||||
[iOS (11,3), TV (11,3), NoMac]
|
||||
[Export ("AdNetworkCampaignIdentifier")]
|
||||
uint AdNetworkCampaignIdentifier { get; set; }
|
||||
|
||||
[iOS (11,3), TV (11,3), NoMac]
|
||||
[Export ("AdNetworkIdentifier")]
|
||||
string AdNetworkIdentifier { get; set; }
|
||||
|
||||
[iOS (11,3), TV (11,3), NoMac]
|
||||
[Export ("AdNetworkNonce")]
|
||||
NSUuid AdNetworkNonce { get; set; }
|
||||
|
||||
[iOS (11,3), TV (11,3), NoMac]
|
||||
[Export ("AdNetworkTimestamp")]
|
||||
uint AdNetworkTimestamp { get; set; }
|
||||
|
||||
[NoWatch, NoMac, TV (14,0), iOS (14, 0)]
|
||||
[Export ("AdNetworkSourceAppStoreIdentifier")]
|
||||
string AdNetworkSourceAppStoreIdentifier { get; }
|
||||
|
||||
[NoWatch, NoMac, TV (14,0), iOS (14, 0)]
|
||||
[Export ("AdNetworkVersion")]
|
||||
string AdNetworkVersion { get; }
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
[Mac (11,0)]
|
||||
[Static]
|
||||
interface SKStoreProductParameterKey
|
||||
{
|
||||
|
@ -599,73 +645,17 @@ namespace StoreKit {
|
|||
[iOS (11,3), TV (11,3), NoMac]
|
||||
[Field ("SKStoreProductParameterAdNetworkTimestamp")]
|
||||
NSString AdNetworkTimestamp { get; }
|
||||
|
||||
[NoWatch, NoMac, TV (14, 0), iOS (14, 0)]
|
||||
[Field ("SKStoreProductParameterAdNetworkSourceAppStoreIdentifier")]
|
||||
NSString AdNetworkSourceAppStoreIdentifier { get; }
|
||||
|
||||
[NoWatch, NoMac, TV (14, 0), iOS (14, 0)]
|
||||
[Field ("SKStoreProductParameterAdNetworkVersion")]
|
||||
NSString AdNetworkVersion { get; }
|
||||
}
|
||||
|
||||
[NoTV]
|
||||
[NoWatch]
|
||||
[BaseType (typeof (NSObject))]
|
||||
[Model]
|
||||
[Protocol]
|
||||
interface SKStoreProductViewControllerDelegate {
|
||||
[Export ("productViewControllerDidFinish:"), EventArgs ("SKStoreProductViewController")]
|
||||
void Finished (SKStoreProductViewController controller);
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
[iOS (9,3)]
|
||||
[TV (9,2)]
|
||||
[BaseType (typeof (NSObject))]
|
||||
#if XAMCORE_3_0 // Avoid breaking change in iOS
|
||||
[DisableDefaultCtor]
|
||||
#endif
|
||||
interface SKCloudServiceController {
|
||||
[Static]
|
||||
[Export ("authorizationStatus")]
|
||||
SKCloudServiceAuthorizationStatus AuthorizationStatus { get; }
|
||||
|
||||
[Static]
|
||||
[Async]
|
||||
[Export ("requestAuthorization:")]
|
||||
void RequestAuthorization (Action<SKCloudServiceAuthorizationStatus> handler);
|
||||
|
||||
[Async]
|
||||
[Export ("requestStorefrontIdentifierWithCompletionHandler:")]
|
||||
void RequestStorefrontIdentifier (Action<NSString, NSError> completionHandler);
|
||||
|
||||
[iOS (11,0)][TV (11,0)]
|
||||
[Async]
|
||||
[Export ("requestStorefrontCountryCodeWithCompletionHandler:")]
|
||||
void RequestStorefrontCountryCode (Action<NSString, NSError> completionHandler);
|
||||
|
||||
[Async]
|
||||
[Export ("requestCapabilitiesWithCompletionHandler:")]
|
||||
void RequestCapabilities (Action<SKCloudServiceCapability, NSError> completionHandler);
|
||||
|
||||
[iOS (10,3), TV (10,2)]
|
||||
[Deprecated (PlatformName.iOS, 11,0, message: "Use 'RequestUserToken' instead.")]
|
||||
[Deprecated (PlatformName.TvOS, 11,0, message: "Use 'RequestUserToken' instead.")]
|
||||
[Async]
|
||||
[Export ("requestPersonalizationTokenForClientToken:withCompletionHandler:")]
|
||||
void RequestPersonalizationToken (string clientToken, Action<NSString, NSError> completionHandler);
|
||||
|
||||
[iOS (11,0)][TV (11,0)]
|
||||
[Async]
|
||||
[Export ("requestUserTokenForDeveloperToken:completionHandler:")]
|
||||
void RequestUserToken (string developerToken, Action<NSString, NSError> completionHandler);
|
||||
|
||||
[Notification]
|
||||
[Field ("SKStorefrontIdentifierDidChangeNotification")]
|
||||
NSString StorefrontIdentifierDidChangeNotification { get; }
|
||||
|
||||
[Notification]
|
||||
[Field ("SKCloudServiceCapabilitiesDidChangeNotification")]
|
||||
NSString CloudServiceCapabilitiesDidChangeNotification { get; }
|
||||
|
||||
[iOS (11,0)][TV (11,0)]
|
||||
[Notification]
|
||||
[Field ("SKStorefrontCountryCodeDidChangeNotification")]
|
||||
NSString StorefrontCountryCodeDidChangeNotification { get; }
|
||||
}
|
||||
#if !MONOMAC
|
||||
|
||||
[iOS (10,1)]
|
||||
[NoWatch]
|
||||
|
@ -763,8 +753,65 @@ namespace StoreKit {
|
|||
[Field ("SKCloudServiceSetupMessageIdentifierPlayMusic")]
|
||||
PlayMusic,
|
||||
}
|
||||
#endif
|
||||
|
||||
[NoWatch, iOS (11,0), TV (11,0)]
|
||||
[Mac (11,0), Watch (7,0), iOS (9,3), TV (9,2)]
|
||||
[BaseType (typeof (NSObject))]
|
||||
#if XAMCORE_3_0 // Avoid breaking change in iOS
|
||||
[DisableDefaultCtor]
|
||||
#endif
|
||||
interface SKCloudServiceController {
|
||||
[Static]
|
||||
[Export ("authorizationStatus")]
|
||||
SKCloudServiceAuthorizationStatus AuthorizationStatus { get; }
|
||||
|
||||
[Static]
|
||||
[Async]
|
||||
[Export ("requestAuthorization:")]
|
||||
void RequestAuthorization (Action<SKCloudServiceAuthorizationStatus> handler);
|
||||
|
||||
[Async]
|
||||
[Export ("requestStorefrontIdentifierWithCompletionHandler:")]
|
||||
void RequestStorefrontIdentifier (Action<NSString, NSError> completionHandler);
|
||||
|
||||
[iOS (11,0)][TV (11,0)]
|
||||
[Async]
|
||||
[Export ("requestStorefrontCountryCodeWithCompletionHandler:")]
|
||||
void RequestStorefrontCountryCode (Action<NSString, NSError> completionHandler);
|
||||
|
||||
[Async]
|
||||
[Export ("requestCapabilitiesWithCompletionHandler:")]
|
||||
void RequestCapabilities (Action<SKCloudServiceCapability, NSError> completionHandler);
|
||||
|
||||
[iOS (10,3), TV (10,2)]
|
||||
[Deprecated (PlatformName.iOS, 11,0, message: "Use 'RequestUserToken' instead.")]
|
||||
[Deprecated (PlatformName.TvOS, 11,0, message: "Use 'RequestUserToken' instead.")]
|
||||
[Async]
|
||||
[Export ("requestPersonalizationTokenForClientToken:withCompletionHandler:")]
|
||||
void RequestPersonalizationToken (string clientToken, Action<NSString, NSError> completionHandler);
|
||||
|
||||
[iOS (11,0)][TV (11,0)]
|
||||
[Async]
|
||||
[Export ("requestUserTokenForDeveloperToken:completionHandler:")]
|
||||
void RequestUserToken (string developerToken, Action<NSString, NSError> completionHandler);
|
||||
|
||||
[Notification]
|
||||
[Field ("SKStorefrontIdentifierDidChangeNotification")]
|
||||
NSString StorefrontIdentifierDidChangeNotification { get; }
|
||||
|
||||
[Notification]
|
||||
[Field ("SKCloudServiceCapabilitiesDidChangeNotification")]
|
||||
NSString CloudServiceCapabilitiesDidChangeNotification { get; }
|
||||
|
||||
[iOS (11,0)][TV (11,0)]
|
||||
[Notification]
|
||||
[Field ("SKStorefrontCountryCodeDidChangeNotification")]
|
||||
NSString StorefrontCountryCodeDidChangeNotification { get; }
|
||||
}
|
||||
|
||||
|
||||
[Introduced (PlatformName.MacCatalyst, 14, 0)]
|
||||
[NoWatch, iOS (11,0), TV (11,0), Mac (11,0)]
|
||||
[BaseType (typeof (NSObject))]
|
||||
[DisableDefaultCtor] // static Default property is the only documented way to get the controller
|
||||
interface SKProductStorePromotionController {
|
||||
|
@ -788,7 +835,6 @@ namespace StoreKit {
|
|||
[Export ("updateStorePromotionOrder:completionHandler:")]
|
||||
void Update (SKProduct[] storePromotionOrder, [NullAllowed] Action<NSError> completionHandler);
|
||||
}
|
||||
#endif
|
||||
|
||||
[iOS (10,3), Mac (10,14)]
|
||||
[NoTV]
|
||||
|
@ -797,9 +843,16 @@ namespace StoreKit {
|
|||
[DisableDefaultCtor] // Not specified but very likely
|
||||
interface SKStoreReviewController {
|
||||
|
||||
[Deprecated (PlatformName.iOS, 14, 0, message : "Use the 'RequestReview (UIWindowScene windowScene)' API instead.")]
|
||||
[Static]
|
||||
[Export ("requestReview")]
|
||||
void RequestReview ();
|
||||
|
||||
[Introduced (PlatformName.MacCatalyst, 14, 0)]
|
||||
[NoWatch, NoTV, iOS (14,0), NoMac]
|
||||
[Static]
|
||||
[Export ("requestReviewInScene:")]
|
||||
void RequestReview (UIWindowScene windowScene);
|
||||
}
|
||||
|
||||
[Watch (6, 2), iOS (11,2), TV (11,2), Mac (10,13,2)]
|
||||
|
@ -853,6 +906,11 @@ namespace StoreKit {
|
|||
[Static]
|
||||
[Export ("registerAppForAdNetworkAttribution")]
|
||||
void RegisterAppForAdNetworkAttribution ();
|
||||
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[Static]
|
||||
[Export ("updateConversionValue:")]
|
||||
void UpdateConversionValue (nint conversionValue);
|
||||
}
|
||||
|
||||
[iOS (12,2)]
|
||||
|
@ -955,4 +1013,139 @@ namespace StoreKit {
|
|||
[Export ("repairArcadeApp")]
|
||||
void Repair ();
|
||||
}
|
||||
|
||||
|
||||
[Unavailable (PlatformName.MacCatalyst)]
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[Advice ("This API is not available when using UIKit on macOS.")]
|
||||
[BaseType (typeof (NSObject))]
|
||||
[DisableDefaultCtor]
|
||||
interface SKOverlayTransitionContext {
|
||||
[Export ("addAnimationBlock:")]
|
||||
void AddAnimationBlock (Action block);
|
||||
|
||||
[Export ("startFrame")]
|
||||
CGRect StartFrame { get; }
|
||||
|
||||
[Export ("endFrame")]
|
||||
CGRect EndFrame { get; }
|
||||
}
|
||||
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[DisableDefaultCtor]
|
||||
[BaseType (typeof (NSObject))]
|
||||
interface SKOverlayConfiguration {}
|
||||
|
||||
[Unavailable (PlatformName.MacCatalyst)]
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[Advice ("This API is not available when using UIKit on macOS.")]
|
||||
[BaseType (typeof (SKOverlayConfiguration))]
|
||||
[DisableDefaultCtor]
|
||||
interface SKOverlayAppConfiguration {
|
||||
[Export ("initWithAppIdentifier:position:")]
|
||||
[DesignatedInitializer]
|
||||
IntPtr Constructor (string appIdentifier, SKOverlayPosition position);
|
||||
|
||||
[Export ("appIdentifier", ArgumentSemantic.Retain)]
|
||||
string AppIdentifier { get; set; }
|
||||
|
||||
[NullAllowed, Export ("campaignToken", ArgumentSemantic.Retain)]
|
||||
string CampaignToken { get; set; }
|
||||
|
||||
[NullAllowed, Export ("providerToken", ArgumentSemantic.Retain)]
|
||||
string ProviderToken { get; set; }
|
||||
|
||||
[Export ("position", ArgumentSemantic.Assign)]
|
||||
SKOverlayPosition Position { get; set; }
|
||||
|
||||
[Export ("userDismissible")]
|
||||
bool UserDismissible { get; set; }
|
||||
|
||||
[Export ("setAdditionalValue:forKey:")]
|
||||
void SetAdditionalValue ([NullAllowed] NSObject value, string key);
|
||||
|
||||
[Export ("additionalValueForKey:")]
|
||||
[return: NullAllowed]
|
||||
NSObject GetAdditionalValue (string key);
|
||||
}
|
||||
|
||||
[Unavailable (PlatformName.MacCatalyst)]
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[Advice ("This API is not available when using UIKit on macOS.")]
|
||||
[BaseType (typeof (SKOverlayConfiguration))]
|
||||
[DisableDefaultCtor]
|
||||
interface SKOverlayAppClipConfiguration {
|
||||
[Export ("initWithPosition:")]
|
||||
[DesignatedInitializer]
|
||||
IntPtr Constructor (SKOverlayPosition position);
|
||||
|
||||
[NullAllowed, Export ("campaignToken", ArgumentSemantic.Retain)]
|
||||
string CampaignToken { get; set; }
|
||||
|
||||
[NullAllowed, Export ("providerToken", ArgumentSemantic.Retain)]
|
||||
string ProviderToken { get; set; }
|
||||
|
||||
[Export ("position", ArgumentSemantic.Assign)]
|
||||
SKOverlayPosition Position { get; set; }
|
||||
|
||||
[Export ("setAdditionalValue:forKey:")]
|
||||
void SetAdditionalValue ([NullAllowed] NSObject value, string key);
|
||||
|
||||
[Export ("additionalValueForKey:")]
|
||||
[return: NullAllowed]
|
||||
NSObject GetAdditionalValue (string key);
|
||||
}
|
||||
|
||||
interface ISKOverlayDelegate {}
|
||||
|
||||
[Unavailable (PlatformName.MacCatalyst)]
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[Protocol, Model (AutoGeneratedName = true), Advice ("This API is not available when using UIKit on macOS.")]
|
||||
[BaseType (typeof (NSObject))]
|
||||
interface SKOverlayDelegate {
|
||||
[Export ("storeOverlay:didFailToLoadWithError:")]
|
||||
void DidFailToLoad (SKOverlay overlay, NSError error);
|
||||
|
||||
[Export ("storeOverlay:willStartPresentation:")]
|
||||
void WillStartPresentation (SKOverlay overlay, SKOverlayTransitionContext transitionContext);
|
||||
|
||||
[Export ("storeOverlay:didFinishPresentation:")]
|
||||
void DidFinishPresentation (SKOverlay overlay, SKOverlayTransitionContext transitionContext);
|
||||
|
||||
[Export ("storeOverlay:willStartDismissal:")]
|
||||
void WillStartDismissal (SKOverlay overlay, SKOverlayTransitionContext transitionContext);
|
||||
|
||||
[Export ("storeOverlay:didFinishDismissal:")]
|
||||
void DidFinishDismissal (SKOverlay overlay, SKOverlayTransitionContext transitionContext);
|
||||
}
|
||||
|
||||
|
||||
[Unavailable (PlatformName.MacCatalyst)]
|
||||
[NoWatch, NoTV, NoMac, iOS (14,0)]
|
||||
[Advice ("This API is not available when using UIKit on macOS.")]
|
||||
[BaseType (typeof (NSObject))]
|
||||
[DisableDefaultCtor]
|
||||
interface SKOverlay {
|
||||
[Export ("initWithConfiguration:")]
|
||||
[DesignatedInitializer]
|
||||
IntPtr Constructor (SKOverlayConfiguration configuration);
|
||||
|
||||
[Export ("presentInScene:")]
|
||||
void PresentInScene (UIWindowScene scene);
|
||||
|
||||
[Static]
|
||||
[Export ("dismissOverlayInScene:")]
|
||||
void DismissOverlayInScene (UIWindowScene scene);
|
||||
|
||||
[Wrap ("WeakDelegate")]
|
||||
[NullAllowed]
|
||||
ISKOverlayDelegate Delegate { get; set; }
|
||||
|
||||
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
|
||||
NSObject WeakDelegate { get; set; }
|
||||
|
||||
[Export ("configuration", ArgumentSemantic.Copy)]
|
||||
SKOverlayConfiguration Configuration { get; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
!deprecated-attribute-missing! SKStoreReviewController::requestReview missing a [Deprecated] attribute
|
||||
!missing-enum! SKOverlayPosition not bound
|
||||
!missing-field! SKStoreProductParameterAdNetworkSourceAppStoreIdentifier not bound
|
||||
!missing-field! SKStoreProductParameterAdNetworkVersion not bound
|
||||
!missing-protocol! SKOverlayDelegate not bound
|
||||
!missing-protocol-member! SKPaymentTransactionObserver::paymentQueue:didRevokeEntitlementsForProductIdentifiers: not found
|
||||
!missing-selector! +SKAdNetwork::updateConversionValue: not bound
|
||||
!missing-selector! +SKOverlay::dismissOverlayInScene: not bound
|
||||
!missing-selector! +SKStoreReviewController::requestReviewInScene: not bound
|
||||
!missing-selector! SKOverlay::configuration not bound
|
||||
!missing-selector! SKOverlay::delegate not bound
|
||||
!missing-selector! SKOverlay::initWithConfiguration: not bound
|
||||
!missing-selector! SKOverlay::presentInScene: not bound
|
||||
!missing-selector! SKOverlay::setDelegate: not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::additionalValueForKey: not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::campaignToken not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::initWithPosition: not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::position not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::providerToken not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::setAdditionalValue:forKey: not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::setCampaignToken: not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::setPosition: not bound
|
||||
!missing-selector! SKOverlayAppClipConfiguration::setProviderToken: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::additionalValueForKey: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::appIdentifier not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::campaignToken not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::initWithAppIdentifier:position: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::position not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::providerToken not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::setAdditionalValue:forKey: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::setAppIdentifier: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::setCampaignToken: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::setPosition: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::setProviderToken: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::setUserDismissible: not bound
|
||||
!missing-selector! SKOverlayAppConfiguration::userDismissible not bound
|
||||
!missing-selector! SKOverlayTransitionContext::addAnimationBlock: not bound
|
||||
!missing-selector! SKOverlayTransitionContext::endFrame not bound
|
||||
!missing-selector! SKOverlayTransitionContext::startFrame not bound
|
||||
!missing-selector! SKPaymentQueue::presentCodeRedemptionSheet not bound
|
||||
!missing-selector! SKPaymentQueue::transactionObservers not bound
|
||||
!missing-selector! SKProduct::isFamilyShareable not bound
|
||||
!missing-type! SKOverlay not bound
|
||||
!missing-type! SKOverlayAppClipConfiguration not bound
|
||||
!missing-type! SKOverlayAppConfiguration not bound
|
||||
!missing-type! SKOverlayConfiguration not bound
|
||||
!missing-type! SKOverlayTransitionContext not bound
|
|
@ -1,3 +1,2 @@
|
|||
# delegate do not mention macOS (as unavailable) but the non-delegate type is not (available)
|
||||
!missing-protocol! SKCloudServiceSetupViewControllerDelegate not bound
|
||||
!missing-protocol! SKStoreProductViewControllerDelegate not bound
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
!missing-enum! SKProductStorePromotionVisibility not bound
|
||||
!missing-field! SKCloudServiceCapabilitiesDidChangeNotification not bound
|
||||
!missing-field! SKStorefrontCountryCodeDidChangeNotification not bound
|
||||
!missing-field! SKStorefrontIdentifierDidChangeNotification not bound
|
||||
!missing-field! SKStoreProductParameterAdvertisingPartnerToken not bound
|
||||
!missing-field! SKStoreProductParameterAffiliateToken not bound
|
||||
!missing-field! SKStoreProductParameterCampaignToken not bound
|
||||
!missing-field! SKStoreProductParameterITunesItemIdentifier not bound
|
||||
!missing-field! SKStoreProductParameterProductIdentifier not bound
|
||||
!missing-field! SKStoreProductParameterProviderToken not bound
|
||||
!missing-protocol-member! SKPaymentTransactionObserver::paymentQueue:didRevokeEntitlementsForProductIdentifiers: not found
|
||||
!missing-protocol-member! SKPaymentTransactionObserver::paymentQueue:shouldAddStorePayment:forProduct: not found
|
||||
!missing-selector! +SKCloudServiceController::authorizationStatus not bound
|
||||
!missing-selector! +SKCloudServiceController::requestAuthorization: not bound
|
||||
!missing-selector! +SKProductStorePromotionController::defaultController not bound
|
||||
!missing-selector! SKCloudServiceController::requestCapabilitiesWithCompletionHandler: not bound
|
||||
!missing-selector! SKCloudServiceController::requestStorefrontCountryCodeWithCompletionHandler: not bound
|
||||
!missing-selector! SKCloudServiceController::requestStorefrontIdentifierWithCompletionHandler: not bound
|
||||
!missing-selector! SKCloudServiceController::requestUserTokenForDeveloperToken:completionHandler: not bound
|
||||
!missing-selector! SKPaymentQueue::transactionObservers not bound
|
||||
!missing-selector! SKProduct::isFamilyShareable not bound
|
||||
!missing-selector! SKProductStorePromotionController::fetchStorePromotionOrderWithCompletionHandler: not bound
|
||||
!missing-selector! SKProductStorePromotionController::fetchStorePromotionVisibilityForProduct:completionHandler: not bound
|
||||
!missing-selector! SKProductStorePromotionController::updateStorePromotionOrder:completionHandler: not bound
|
||||
!missing-selector! SKProductStorePromotionController::updateStorePromotionVisibility:forProduct:completionHandler: not bound
|
||||
!missing-selector! SKStoreProductViewController::delegate not bound
|
||||
!missing-selector! SKStoreProductViewController::loadProductWithParameters:completionBlock: not bound
|
||||
!missing-selector! SKStoreProductViewController::setDelegate: not bound
|
||||
!missing-type! SKCloudServiceController not bound
|
||||
!missing-type! SKProductStorePromotionController not bound
|
||||
!missing-type! SKStoreProductViewController not bound
|
|
@ -1,5 +0,0 @@
|
|||
!missing-field! SKStoreProductParameterAdNetworkSourceAppStoreIdentifier not bound
|
||||
!missing-field! SKStoreProductParameterAdNetworkVersion not bound
|
||||
!missing-protocol-member! SKPaymentTransactionObserver::paymentQueue:didRevokeEntitlementsForProductIdentifiers: not found
|
||||
!missing-selector! SKPaymentQueue::transactionObservers not bound
|
||||
!missing-selector! SKProduct::isFamilyShareable not bound
|
|
@ -1,15 +0,0 @@
|
|||
!missing-enum! SKCloudServiceAuthorizationStatus not bound
|
||||
!missing-enum! SKCloudServiceCapability not bound
|
||||
!missing-field! SKCloudServiceCapabilitiesDidChangeNotification not bound
|
||||
!missing-field! SKStorefrontCountryCodeDidChangeNotification not bound
|
||||
!missing-field! SKStorefrontIdentifierDidChangeNotification not bound
|
||||
!missing-protocol-member! SKPaymentTransactionObserver::paymentQueue:didRevokeEntitlementsForProductIdentifiers: not found
|
||||
!missing-selector! +SKCloudServiceController::authorizationStatus not bound
|
||||
!missing-selector! +SKCloudServiceController::requestAuthorization: not bound
|
||||
!missing-selector! SKCloudServiceController::requestCapabilitiesWithCompletionHandler: not bound
|
||||
!missing-selector! SKCloudServiceController::requestStorefrontCountryCodeWithCompletionHandler: not bound
|
||||
!missing-selector! SKCloudServiceController::requestStorefrontIdentifierWithCompletionHandler: not bound
|
||||
!missing-selector! SKCloudServiceController::requestUserTokenForDeveloperToken:completionHandler: not bound
|
||||
!missing-selector! SKPaymentQueue::transactionObservers not bound
|
||||
!missing-selector! SKProduct::isFamilyShareable not bound
|
||||
!missing-type! SKCloudServiceController not bound
|
Загрузка…
Ссылка в новой задаче