Bug 40019 - PHAssetCollectionSubtype.SmartAlbumScreenshots enum value missing.
Summary: PHAssetCollectionSubtype.SmartAlbumScreenshots enum value missing.
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.4 (iOS 9.2)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: Sebastien Pouliot
Depends on:
Reported: 2016-03-31 14:39 UTC by bugzilla
Modified: 2016-06-02 17:00 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description bugzilla 2016-03-31 14:39:52 UTC
The Photos.PHAssetCollectionSubtype enum is missing the SmartAlbumScreenshots value added in iOS 9. Similar screenshot values for Photos.PHCollectionListSubtype and Photos.PHAssetMediaSubtype are present in Xamarin.iOS however the value for PHAssetCollectionSubtype is not.

Comment 1 Sebastien Pouliot 2016-04-01 03:07:19 UTC
Good catch, this is a mistake. PHCollectionListSubtype should not have the values

- SmartAlbumSelfPortraits = 210,
- SmartAlbumScreenshots = 211,

Instead both should have been added in PHAssetCollectionSubtype instead.

The workaround (until a fix is released) is to typecast the integer value for the enum type, e.g. 

    ((PHAssetCollectionSubtype) 211)
Comment 2 Sebastien Pouliot 2016-04-01 03:16:42 UTC
Fixed in maccore/master 7c4d1a1ed1f37c948b4a62f1888586b5288de2a3
Backported to maccore/cycle7 35114c0673cb66f56ca58d1bfe847a6f1da278a3
Comment 3 Sunil Kumar 2016-06-02 17:00:44 UTC
I have tried to reproduce this issue with XI 9.4.x and observed that PHAssetCollectionSubtype.SmartAlbumScreenshots enum value is missing as shown in screencast: http://www.screencast.com/t/r0QPq9g8atm

I have also checked this issue with latest C7 XI and observed that now it is not showing value for both enums listed below:

- SmartAlbumSelfPortraits,
- SmartAlbumScreenshots,

Here is the screencast for the same: http://www.screencast.com/t/BJYq5TVigEzD

Hence I am closing this issue.

Environment info:
=== Xamarin Studio Community ===

Version 6.0 (build 5174)
Installation UUID: 561c7a69-0a91-4bae-ad7c-f0c79d594337
	Mono 4.4.0 (mono-4.4.0-branch/5995f74) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000182

=== Xamarin.Profiler ===

Version: 0.29.99
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: (Xamarin Studio Community)
Android SDK: /Users/tajinder/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 25.1.3
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Android Designer EPL code available here:

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 7.2 (9548)
Build 7C68

=== Xamarin.iOS ===

Version: (Xamarin Studio Community)
Hash: 39ebb77
Branch: cycle7
Build date: 2016-06-01 20:33:19-0400

=== Xamarin.Mac ===

Version: (Xamarin Studio Community)

=== Build Information ===

Release ID: 600005174
Git revision: c2c4170731bec0e8361f2cbe836334efb7a97324
Build date: 2016-06-01 20:57:50-04
Xamarin addins: ec7246454b1aa279e5e52f9717b5dd5f91afa810
Build lane: monodevelop-lion-cycle7

=== Operating System ===

Mac OS X 10.10.5
Darwin Tajinders-iMac.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Gist Ide Information 1.0.2
Addin Maker 1.3.2
DNX 0.2
NuGet Package Management Extensions 0.11
Test Template Parameters 0.4
JSON Copy 1.1