Example #1
0
 private ImageCache()
 {
     _taggedImages = _imageRepository.GetAll().ToDictionary(x => x.LocalIdentifier);
     PHFetchResult fetchResult = PHAsset.FetchAssets(PHAssetMediaType.Image, null);
     InitialiseAssets(fetchResult);
     InitialiseImages(_assets);
     _photoLibraryObserver = new PhotoLibraryObserver(this);
     RegisterObservers();
 }
        public PhotosViewController(UICollectionViewLayout layout) : base(layout)
        {
            Title = "All Photos";

            imageMgr     = new PHImageManager();
            fetchResults = PHAsset.FetchAssets(PHAssetMediaType.Image, null);

            observer = new PhotoLibraryObserver(this);

            PHPhotoLibrary.SharedPhotoLibrary.RegisterChangeObserver(observer);
        }
        public PhotosViewController(UICollectionViewLayout layout)
            : base(layout)
        {
            Title = "All Photos";

            imageMgr = new PHImageManager ();
            fetchResults = PHAsset.FetchAssets (PHAssetMediaType.Image, null);

            observer = new PhotoLibraryObserver (this);

            PHPhotoLibrary.SharedPhotoLibrary.RegisterChangeObserver (observer);
        }
 public PhotosViewController(IntPtr handle) : base(handle)
 {
     imageManager = new PHImageManager();
     Images       = PHAsset.FetchAssets(PHAssetMediaType.Image, null);
     PHPhotoLibrary.SharedPhotoLibrary.RegisterChangeObserver(observer = new PhotoLibraryObserver(this));
 }