[storekit] Update for iOS 10.1 beta 2 (#977)
This commit is contained in:
Родитель
c9330fe5a7
Коммит
e338dce193
|
@ -52,6 +52,8 @@ namespace XamCore.StoreKit {
|
|||
public enum SKCloudServiceCapability : nuint {
|
||||
None = 0,
|
||||
MusicCatalogPlayback = 1 << 0,
|
||||
[NoTV, iOS (10,1)]
|
||||
MusicCatalogSubscriptionEligible = 1 << 1,
|
||||
AddToCloudMusicLibrary = 1 << 8
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -383,9 +383,12 @@ namespace XamCore.StoreKit {
|
|||
Delegates=new string [] { "WeakDelegate" },
|
||||
Events =new Type [] { typeof (SKStoreProductViewControllerDelegate) })]
|
||||
interface SKStoreProductViewController {
|
||||
#if !XAMCORE_4_0
|
||||
// SKStoreProductViewController is an OS View Controller which can't be customized
|
||||
[Export ("initWithNibName:bundle:")]
|
||||
[PostGet ("NibBundle")]
|
||||
IntPtr Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle);
|
||||
#endif
|
||||
|
||||
[Export ("delegate", ArgumentSemantic.Assign), NullAllowed]
|
||||
NSObject WeakDelegate { get; set; }
|
||||
|
@ -469,5 +472,61 @@ namespace XamCore.StoreKit {
|
|||
[Field ("SKCloudServiceCapabilitiesDidChangeNotification")]
|
||||
NSString CloudServiceCapabilitiesDidChangeNotification { get; }
|
||||
}
|
||||
|
||||
[NoTV, iOS (10,1)]
|
||||
[BaseType (typeof(UIViewController))]
|
||||
interface SKCloudServiceSetupViewController
|
||||
{
|
||||
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
|
||||
ISKCloudServiceSetupViewControllerDelegate Delegate { get; set; }
|
||||
|
||||
[Async]
|
||||
[Export ("loadWithOptions:completionHandler:")]
|
||||
void Load (NSDictionary options, [NullAllowed] Action<bool, NSError> completionHandler);
|
||||
|
||||
[Async]
|
||||
[Wrap ("Load (options == null ? null : options.Dictionary, completionHandler)")]
|
||||
void Load (SKCloudServiceSetupOptions options, Action<bool, NSError> completionHandler);
|
||||
}
|
||||
|
||||
interface ISKCloudServiceSetupViewControllerDelegate {}
|
||||
|
||||
[NoTV, iOS (10,1)]
|
||||
[Protocol, Model]
|
||||
[BaseType (typeof(NSObject))]
|
||||
interface SKCloudServiceSetupViewControllerDelegate
|
||||
{
|
||||
[Export ("cloudServiceSetupViewControllerDidDismiss:")]
|
||||
void DidDismiss (SKCloudServiceSetupViewController cloudServiceSetupViewController);
|
||||
}
|
||||
|
||||
[NoTV, iOS (10,1)]
|
||||
[StrongDictionary ("SKCloudServiceSetupOptionsKeys")]
|
||||
interface SKCloudServiceSetupOptions
|
||||
{
|
||||
// Headers comment: Action for setup entry point (of type SKCloudServiceSetupAction).
|
||||
SKCloudServiceSetupAction Action { get; set; }
|
||||
|
||||
// Headers comment: Identifier of the iTunes Store item the user is trying to access which requires cloud service setup (NSNumber).
|
||||
nint ITunesItemIdentifier { get; set; }
|
||||
}
|
||||
|
||||
[NoTV, iOS (10,1)]
|
||||
[Internal, Static]
|
||||
interface SKCloudServiceSetupOptionsKeys
|
||||
{
|
||||
[Field ("SKCloudServiceSetupOptionsActionKey")]
|
||||
NSString ActionKey { get; }
|
||||
|
||||
[Field ("SKCloudServiceSetupOptionsITunesItemIdentifierKey")]
|
||||
NSString ITunesItemIdentifierKey { get; }
|
||||
}
|
||||
|
||||
[NoTV, iOS (10,1)]
|
||||
enum SKCloudServiceSetupAction
|
||||
{
|
||||
[Field ("SKCloudServiceSetupActionSubscribe")]
|
||||
Subscribe,
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -289,6 +289,12 @@ namespace Introspection {
|
|||
if (ctor.ToString () == "Void .ctor(NSString, NSRegularExpressionOptions, NSError&)")
|
||||
return true;
|
||||
break;
|
||||
case "SKStoreProductViewController":
|
||||
case "SKCloudServiceSetupViewController":
|
||||
// SKStoreProductViewController and SKCloudServiceSetupViewController are OS View Controllers which can't be customized. Therefore they shouldn't re-expose initWithNibName:bundle:
|
||||
if (ctor.ToString () == "Void .ctor(String, NSBundle)")
|
||||
return true;
|
||||
break;
|
||||
#if __TVOS__
|
||||
case "UISearchBar":
|
||||
// - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER __TVOS_PROHIBITED;
|
||||
|
|
Загрузка…
Ссылка в новой задаче