Skip to content
Merged
Show file tree
Hide file tree
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
48 changes: 48 additions & 0 deletions src/storekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ public enum SKANError : long {
InvalidAdvertisedAppId = 8,
InvalidVersion = 9,
Unknown = 10,
ImpressionTooShort = 11,
}

[Deprecated (PlatformName.iOS, 16, 0)]
[Deprecated (PlatformName.MacOSX, 13, 0)]
[Deprecated (PlatformName.TvOS, 16, 0)]
[Deprecated (PlatformName.WatchOS, 9, 0)]
[Watch (6, 2)]
[BaseType (typeof (NSObject))]
partial interface SKDownload {
Expand Down Expand Up @@ -245,15 +250,31 @@ interface SKPaymentQueue {
//
// iOS 6.0
//
[Deprecated (PlatformName.iOS, 16, 0)]
[Deprecated (PlatformName.MacOSX, 13, 0)]
[Deprecated (PlatformName.TvOS, 16, 0)]
[Deprecated (PlatformName.WatchOS, 9, 0)]
[Export ("startDownloads:")]
void StartDownloads (SKDownload [] downloads);

[Deprecated (PlatformName.iOS, 16, 0)]
[Deprecated (PlatformName.MacOSX, 13, 0)]
[Deprecated (PlatformName.TvOS, 16, 0)]
[Deprecated (PlatformName.WatchOS, 9, 0)]
[Export ("pauseDownloads:")]
void PauseDownloads (SKDownload [] downloads);

[Deprecated (PlatformName.iOS, 16, 0)]
[Deprecated (PlatformName.MacOSX, 13, 0)]
[Deprecated (PlatformName.TvOS, 16, 0)]
[Deprecated (PlatformName.WatchOS, 9, 0)]
[Export ("resumeDownloads:")]
void ResumeDownloads (SKDownload [] downloads);

[Deprecated (PlatformName.iOS, 16, 0)]
[Deprecated (PlatformName.MacOSX, 13, 0)]
[Deprecated (PlatformName.TvOS, 16, 0)]
[Deprecated (PlatformName.WatchOS, 9, 0)]
[Export ("cancelDownloads:")]
void CancelDownloads (SKDownload [] downloads);

Expand Down Expand Up @@ -393,6 +414,10 @@ interface SKPaymentTransactionObserver {
[Export ("paymentQueueRestoreCompletedTransactionsFinished:")]
void RestoreCompletedTransactionsFinished (SKPaymentQueue queue);

[Deprecated (PlatformName.iOS, 16, 0)]
[Deprecated (PlatformName.MacOSX, 13, 0)]
[Deprecated (PlatformName.TvOS, 16, 0)]
[Deprecated (PlatformName.WatchOS, 9, 0)]
[Export ("paymentQueue:updatedDownloads:")]
void UpdatedDownloads (SKPaymentQueue queue, SKDownload [] downloads);

Expand Down Expand Up @@ -443,6 +468,10 @@ interface SKPaymentTransaction {
[Export ("transactionState")]
SKPaymentTransactionState TransactionState { get; }

[Deprecated (PlatformName.iOS, 16, 0)]
[Deprecated (PlatformName.MacOSX, 13, 0)]
[Deprecated (PlatformName.TvOS, 16, 0)]
[Deprecated (PlatformName.WatchOS, 9, 0)]
[Export ("downloads")]
SKDownload [] Downloads { get; }
}
Expand Down Expand Up @@ -570,6 +599,16 @@ interface SKStoreProductViewController {
[Wrap ("LoadProduct (parameters.GetDictionary ()!, callback)")]
[Async]
void LoadProduct (StoreProductParameters parameters, [NullAllowed] Action<bool,NSError> callback);

[Async]
[NoMac, iOS (16,0)]
[Export ("loadProductWithParameters:impression:completionBlock:")]
void LoadProduct (NSDictionary parameters, SKAdImpression impression, [NullAllowed] Action<bool, NSError> callback);

[Async]
[NoMac, iOS (16,0)]
[Wrap ("LoadProduct (parameters.GetDictionary ()!, impression, callback)")]
void LoadProduct (StoreProductParameters parameters, SKAdImpression impression, [NullAllowed] Action<bool, NSError> callback);
}

[Mac (11,0), NoTV, NoWatch]
Expand Down Expand Up @@ -1140,6 +1179,10 @@ interface SKOverlayAppConfiguration {
[Export ("additionalValueForKey:")]
[return: NullAllowed]
NSObject GetAdditionalValue (string key);

[iOS (16,0)]
[Export ("setAdImpression:")]
void SetAdImpression (SKAdImpression impression);
}

[NoWatch, NoTV, NoMac, iOS (14,0)]
Expand Down Expand Up @@ -1238,6 +1281,10 @@ interface SKOverlay {
[BaseType (typeof (NSObject))]
interface SKAdImpression {

[iOS (16,0)]
[Export ("initWithSourceAppStoreItemIdentifier:advertisedAppStoreItemIdentifier:adNetworkIdentifier:adCampaignIdentifier:adImpressionIdentifier:timestamp:signature:version:")]
NativeHandle Constructor (NSNumber sourceAppStoreItemIdentifier, NSNumber advertisedAppStoreItemIdentifier, string adNetworkIdentifier, NSNumber adCampaignIdentifier, string adImpressionIdentifier, NSNumber timestamp, string signature, string version);

[Export ("sourceAppStoreItemIdentifier", ArgumentSemantic.Strong)]
NSNumber SourceAppStoreItemIdentifier { get; set; }

Expand Down Expand Up @@ -1270,5 +1317,6 @@ interface SKAdImpression {

[Export ("version", ArgumentSemantic.Strong)]
string Version { get; set; }

}
}
20 changes: 0 additions & 20 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-StoreKit.todo

This file was deleted.

18 changes: 0 additions & 18 deletions tests/xtro-sharpie/api-annotations-dotnet/tvOS-StoreKit.todo

This file was deleted.

20 changes: 0 additions & 20 deletions tests/xtro-sharpie/iOS-StoreKit.todo

This file was deleted.

16 changes: 0 additions & 16 deletions tests/xtro-sharpie/tvOS-StoreKit.todo

This file was deleted.

16 changes: 0 additions & 16 deletions tests/xtro-sharpie/watchOS-StoreKit.todo

This file was deleted.