public static ELCImagePickerViewController Instance(ALAssetsFilter filter)
        {
            var albumPicker = new ELCAlbumPickerController (filter);
            var picker = new ELCImagePickerViewController (albumPicker);
            albumPicker.Parent = picker;
            picker.MaximumImagesCount = 1000;
            picker.NavigationBar.BarStyle = UIBarStyle.Black;

            return picker;
        }
        /// <summary>
        /// Create a new instance of the Picker
        /// </summary>
        /// <param name="options">StoreCameraMediaOptions</param>
        /// <param name="maxImages">Max images.</param>
        /// <param name="selectAlbumTitle">Select album title.</param>
        /// <param name="pickPhotosTitle">Pick photos title.</param>
        /// <param name="backBattonTitle">Back batton title.</param>
        /// <param name="pickPhotoTitle">Pick photo title.</param>
        /// <param name="doneButtonTitle">Done button title.</param>
        /// <param name="loadingtitle">LoadingTitle.</param>
        public static ELCImagePickerViewController Create(StoreCameraMediaOptions options = null, int maxImages = 4, string selectAlbumTitle = null, string pickPhotosTitle = null, string backBattonTitle = null, string pickPhotoTitle = null, string doneButtonTitle = null, string loadingtitle = null, string pathToOverlay = null)
        {
            var albumPicker = new ELCAlbumPickerController()
            {
                SelectAlbumTitle = selectAlbumTitle,
                BackButtonTitle  = backBattonTitle,
                DoneButtonTitle  = doneButtonTitle,
                LoadingTitle     = loadingtitle,
                PickAssetTitle   = AssetTitle(maxImages, pickPhotoTitle, pickPhotosTitle),
            };

            var picker = new ELCImagePickerViewController(albumPicker, options);

            albumPicker.Parent        = picker;
            picker.MaximumImagesCount = maxImages;
            return(picker);
        }
Beispiel #3
0
        public static ELCImagePickerViewController GetInstance(string selectAlbum, string customPickPhotosTitle = "", string customBackBattonTitle = "", string customPickPhotoTitle = "", string customDoneButtonTitle = "", string customLoadingtitle = "")
        {
            var albumPicker = new ELCAlbumPickerController()
            {
                CustomSelectAlBumTitle = selectAlbum,
                CustomBackButtonTitle  = customBackBattonTitle,
                CustomDoneButtonTitle  = customDoneButtonTitle,
                CustomLoadingTitle     = customLoadingtitle,
                CustomPickPhotosTitle  = customPickPhotosTitle,
                CustomPickPhotoTitle   = customPickPhotoTitle
            };

            var picker = new ELCImagePickerViewController(albumPicker);

            albumPicker.Parent        = picker;
            picker.MaximumImagesCount = 4;
            return(picker);
        }