public IGalleryPickerExtended() { jsonSerializerSettings = new JsonSerializerSettings() { PreserveReferencesHandling = PreserveReferencesHandling.Objects, Formatting = Formatting.Indented, DateTimeZoneHandling = DateTimeZoneHandling.Utc, NullValueHandling = NullValueHandling.Include, MissingMemberHandling = MissingMemberHandling.Ignore }; MessagingCenter.Subscribe <GalleryPickerController, List <PhotoSetNative> >(this, Utils.SubscribeImageFromGallery, (arg1, arg2) => { var itemResult = new List <GalleryImageXF>(); foreach (var item in arg2) { itemResult.Add(item.galleryImageXF); } galleryPickerResultListener.IF_PickedResult(itemResult, CodeRequest); }); MessagingCenter.Subscribe <XFCameraController, List <PhotoSetNative> >(this, Utils.SubscribeImageFromCamera, (arg1, arg2) => { var itemResult = new List <GalleryImageXF>(); foreach (var item in arg2) { itemResult.Add(item.galleryImageXF); } galleryPickerResultListener.IF_PickedResult(itemResult, CodeRequest); }); }
public IGalleryPickerExtended() { MessagingCenter.Subscribe <GalleryPickerActivity, List <GalleryImageXF> >(this, Utils.SubscribeImageFromGallery, (arg1, arg2) => { galleryPickerResultListener.IF_PickedResult(arg2, CodeRequest); }); }