roycornelissen/GMImagePicker.Xamarin

How to get the file path from Picker_FinishedPickingAssets?

Closed this issue · 3 comments

How to get the file path from Picker_FinishedPickingAssets?

Hi, I've added some sample code to the demo app that demonstrates this. Basically, once you have obtained the asset (a PHAsset object), you can do this:

// Get information about the asset, e.g. file patch
asset.RequestContentEditingInput(new PHContentEditingInputRequestOptions(), 
	(input, _) => 
	{ 
		Console.WriteLine(input.FullSizeImageUrl); 
	});

Hi @roycornelissen,
It is not working in synchronous mode.

Why we need await Task.Delay(1000); for every image